1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 04:52:53 +03:00

Highlight 'copied' file action in git-commit buffers

This commit is contained in:
Maxime Coste 2017-05-17 20:19:56 +01:00
parent 3917d26709
commit eec8239c78

View File

@ -7,7 +7,7 @@ hook -group git-commit-highlight global WinSetOption filetype=git-commit %{
add-highlighter -group git-commit-highlight regex "\`[^\n]{1,50}" 0:yellow
add-highlighter -group git-commit-highlight regex "\`[^\n]*\n\h*(?!#)([^\n]*)\n?" 1:default,red
add-highlighter -group git-commit-highlight regex "^\h*#[^\n]*\n" 0:cyan,default
add-highlighter -group git-commit-highlight regex "\b(?:(modified)|(deleted)|(new file)|(renamed)):([^\n]*)\n" 1:yellow 2:red 3:green 4:blue 5:magenta
add-highlighter -group git-commit-highlight regex "\b(?:(modified)|(deleted)|(new file)|(renamed|copied)):([^\n]*)\n" 1:yellow 2:red 3:green 4:blue 5:magenta
add-highlighter -group git-commit-highlight ref diff # highlight potential diffs from the -v option
}