add some highlighting for git

This commit is contained in:
Maxime Coste 2012-03-08 20:58:22 +00:00
parent c98657a512
commit 97648b1fda
2 changed files with 13 additions and 0 deletions

View File

@ -2,3 +2,4 @@ hook global WinCreate .* addhl regex \h+(?=\n) default red
runtime rc/cpp.kak runtime rc/cpp.kak
runtime rc/kakrc.kak runtime rc/kakrc.kak
runtime rc/git.kak

12
src/rc/git.kak Normal file
View 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;