mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-23 23:34:12 +03:00
git.kak: tweak highlighting
This commit is contained in:
parent
f1d8d0add8
commit
78d4675c24
@ -5,8 +5,7 @@ hook global BufCreate .*COMMIT_EDITMSG %{
|
||||
hook global WinSetOption filetype=git-commit %{
|
||||
addhl group git-commit-highlight
|
||||
addhl -group git-commit-highlight regex "#[^\n]*\n" 0:cyan,default
|
||||
addhl -group git-commit-highlight regex "\<(modified|deleted|new file):[^\n]*\n" 0:magenta,default
|
||||
addhl -group git-commit-highlight regex "\<(modified|deleted|new file):" 0:red,default
|
||||
addhl -group git-commit-highlight regex "\<(?:(modified)|(deleted)|(new file)):([^\n]*)\n" 1:yellow 2:red 3:green 4:magenta
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=(?!git-commit).* %{
|
||||
@ -20,8 +19,7 @@ hook global BufCreate .*git-rebase-todo %{
|
||||
hook global WinSetOption filetype=git-rebase %{
|
||||
addhl group git-rebase-highlight
|
||||
addhl -group git-rebase-highlight regex "#[^\n]*\n" 0:cyan,default
|
||||
addhl -group git-rebase-highlight regex "^(pick|edit|reword|squash|fixup|exec|[persfx]) \w+" 0:magenta,default
|
||||
addhl -group git-rebase-highlight regex "^(pick|edit|reword|squash|fixup|exec|[persfx])" 0:green,default
|
||||
addhl -group git-rebase-highlight regex "^(pick|edit|reword|squash|fixup|exec|[persfx]) (\w+)" 1:green 2:magenta
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=(?!git-rebase).* %{
|
||||
|
Loading…
Reference in New Issue
Block a user