mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 20:41:49 +03:00
fa72d27f9a
* Kak relies on the kakrc file to be in ../share/kak/kakrc relative to kak binary rather than in the same directory * Added an install target to the Makefile
15 lines
424 B
Plaintext
15 lines
424 B
Plaintext
hook global BufCreate .*\.(diff|patch) %{
|
|
set buffer filetype diff
|
|
}
|
|
|
|
hook global WinSetOption filetype=diff %{
|
|
addhl group diff-highlight
|
|
addhl -group diff-highlight regex "^\+[^\n]*\n" 0:green,default
|
|
addhl -group diff-highlight regex "^-[^\n]*\n" 0:red,default
|
|
addhl -group diff-highlight regex "^@@[^\n]*@@" 0:cyan,default
|
|
}
|
|
|
|
hook global WinSetOption filetype=(?!diff).* %{
|
|
rmhl diff-highlight
|
|
}
|