summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rc/git.kak6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rc/git.kak b/src/rc/git.kak
index 1707b33a..4e800764 100644
--- a/src/rc/git.kak
+++ b/src/rc/git.kak
@@ -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).* %{