summaryrefslogtreecommitdiff
path: root/rc/base/git.kak
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2018-08-09 12:27:40 +0300
committerJason Felice <jason.m.felice@gmail.com>2019-03-14 10:53:13 -0400
commit2c19c2d84c58a3fb2807ac274d3b05f8cb568e96 (patch)
treeef4949ec4a427b7cf89b51063579ada68d5e01e2 /rc/base/git.kak
parent47be98f1fc5aa3e2bdc1f2ccfa3a8b9f8c4ffc51 (diff)
rc: Use builtin faces
Diffstat (limited to 'rc/base/git.kak')
-rw-r--r--rc/base/git.kak8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc/base/git.kak b/rc/base/git.kak
index 1a6fea11..13d58f0a 100644
--- a/rc/base/git.kak
+++ b/rc/base/git.kak
@@ -14,14 +14,14 @@ hook -group git-commit-highlight global WinSetOption filetype=git-commit %{
add-highlighter window/git-commit-highlight regions
add-highlighter window/git-commit-highlight/diff region '^diff --git' '^(?=diff --git)' ref diff # highlight potential diffs from the -v option
add-highlighter window/git-commit-highlight/comments region '^\h*#' '$' group
- add-highlighter window/git-commit-highlight/comments/ fill cyan,default
+ add-highlighter window/git-commit-highlight/comments/ fill comment
add-highlighter window/git-commit-highlight/comments/ regex "\b(?:(modified)|(deleted)|(new file)|(renamed|copied)):([^\n]*)$" 1:yellow 2:red 3:green 4:blue 5:magenta
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/git-commit-highlight }
}
hook -group git-commit-highlight global WinSetOption filetype=git-notes %{
- add-highlighter window/git-notes-highlight regex '^\h*#[^\n]*$' 0:cyan
+ add-highlighter window/git-notes-highlight regex '^\h*#[^\n]*$' 0:comment
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/git-notes-highlight }
}
@@ -33,8 +33,8 @@ hook global BufCreate .*git-rebase-todo %{
hook -group git-rebase-highlight global WinSetOption filetype=git-rebase %{
add-highlighter window/git-rebase-highlight group
- add-highlighter window/git-rebase-highlight/ regex "#[^\n]*\n" 0:cyan,default
- add-highlighter window/git-rebase-highlight/ regex "^(pick|edit|reword|squash|fixup|exec|break|drop|label|reset|merge|[persfxbdltm]) (\w+)" 1:green 2:magenta
+ add-highlighter window/git-rebase-highlight/ regex "#[^\n]*\n" 0:comment
+ add-highlighter window/git-rebase-highlight/ regex "^(pick|edit|reword|squash|fixup|exec|break|drop|label|reset|merge|[persfxbdltm]) (\w+)" 1:keyword 2:meta
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/git-rebase-highlight }
}