From 97648b1fdaadbfe64f490b519612a84cadbd7090 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 8 Mar 2012 20:58:22 +0000 Subject: [PATCH] add some highlighting for git --- src/kakrc | 1 + src/rc/git.kak | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/rc/git.kak diff --git a/src/kakrc b/src/kakrc index 39aecbc6..0fa8511f 100644 --- a/src/kakrc +++ b/src/kakrc @@ -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 diff --git a/src/rc/git.kak b/src/rc/git.kak new file mode 100644 index 00000000..4d5603fe --- /dev/null +++ b/src/rc/git.kak @@ -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; +