add some highlighting for git
This commit is contained in:
parent
c98657a512
commit
97648b1fda
|
@ -2,3 +2,4 @@ hook global WinCreate .* addhl regex \h+(?=\n) default red
|
|||
|
||||
runtime rc/cpp.kak
|
||||
runtime rc/kakrc.kak
|
||||
runtime rc/git.kak
|
||||
|
|
12
src/rc/git.kak
Normal file
12
src/rc/git.kak
Normal file
|
@ -0,0 +1,12 @@
|
|||
hook global WinCreate .*COMMIT_EDITMSG \
|
||||
addhl group hlgit; \
|
||||
addgrouphl hlgit regex "#[^\n]*\n" cyan default; \
|
||||
addgrouphl hlgit regex "\<(modified|deleted|new file):[^\n]*\n" magenta default; \
|
||||
addgrouphl hlgit regex "\<(modified|deleted|new file):" red default;
|
||||
|
||||
hook global WinCreate .*git-rebase-todo \
|
||||
addhl group hlgit; \
|
||||
addgrouphl hlgit regex "#[^\n]*\n" cyan default; \
|
||||
addgrouphl hlgit regex "^(pick|edit|reword|squash|fixup|exec|[persfx]) \w+" magenta default; \
|
||||
addgrouphl hlgit regex "^(pick|edit|reword|squash|fixup|exec|[persfx])" green default;
|
||||
|
Loading…
Reference in New Issue
Block a user