2012-07-31 14:22:57 +02:00
|
|
|
hook global BufCreate (.*/)?(kakrc|.*.kak) %{
|
2012-06-14 15:21:22 +02:00
|
|
|
setb filetype kak
|
2012-07-31 14:22:57 +02:00
|
|
|
}
|
2012-06-14 15:21:22 +02:00
|
|
|
|
2012-07-31 14:22:57 +02:00
|
|
|
hook global WinSetOption filetype=kak %{
|
|
|
|
addhl group kak-highlight
|
2012-08-07 00:13:54 +02:00
|
|
|
addhl -group kak-highlight regex \<(hook|addhl|rmhl|addfilter|rmfilter|exec|source|runtime|def|echo|edit|set[gbw])\> 0:green,default
|
|
|
|
addhl -group kak-highlight regex \<(default|black|red|green|yellow|blue|magenta|cyan|white)\> 0:yellow,default
|
|
|
|
addhl -group kak-highlight regex (?<=\<hook)(\h+\w+){2}\h+\H+ 0:magenta,default
|
|
|
|
addhl -group kak-highlight regex (?<=\<hook)(\h+\w+){2} 0:cyan,default
|
|
|
|
addhl -group kak-highlight regex (?<=\<hook)(\h+\w+) 0:red,default
|
|
|
|
addhl -group kak-highlight regex (?<=\<hook)(\h+(global|buffer|window)) 0:blue,default
|
|
|
|
addhl -group kak-highlight regex (?<=\<regex)\h+\S+ 0:magenta,default
|
|
|
|
addhl -group kak-highlight regex (?<=\<set[gbw])\h+\S+\h+\S+ 0:magenta,default
|
|
|
|
addhl -group kak-highlight regex (?<=\<set[gbw])\h+\S+ 0:red,default
|
2012-07-31 14:22:57 +02:00
|
|
|
}
|
2012-06-14 15:21:22 +02:00
|
|
|
|
2012-07-31 14:22:57 +02:00
|
|
|
hook global WinSetOption filetype=(?!kak).* %{
|
2012-06-14 23:52:47 +02:00
|
|
|
rmhl kak-highlight
|
2012-07-31 14:22:57 +02:00
|
|
|
}
|