16 lines
792 B
Plaintext
16 lines
792 B
Plaintext
hook global BufCreate (.*/)?(kakrc|.*.kak) \
|
|
setb filetype kak
|
|
|
|
hook global WinSetOption filetype=kak \
|
|
addhl group hlkakrc; \
|
|
addhl -group hlkakrc regex \<(hook|addhl|rmhl|addfilter|rmfilter|exec|source|runtime|def|echo|edit)\> green default; \
|
|
addhl -group hlkakrc regex \<(default|black|red|green|yellow|blue|magenta|cyan|white)\> yellow default; \
|
|
addhl -group hlkakrc regex (?<=\<hook)(\h+\w+){2}\h+\H+ magenta default; \
|
|
addhl -group hlkakrc regex (?<=\<hook)(\h+\w+){2} cyan default; \
|
|
addhl -group hlkakrc regex (?<=\<hook)(\h+\w+) red default; \
|
|
addhl -group hlkakrc regex (?<=\<hook)(\h+(global|window)) blue default; \
|
|
addhl -group hlkakrc regex (?<=\<regex)\h+\H+ magenta default
|
|
|
|
hook global WinSetOption filetype=(?!kak).* \
|
|
rmhl hlkakrc
|