Highlight diffs in git-log highlighter, to handle the -p switch

This commit is contained in:
Maxime Coste 2015-08-24 20:10:07 +01:00
parent c143d6d203
commit 1bc333a028

View File

@ -4,6 +4,7 @@ hook global WinSetOption filetype=git-log %{
addhl group git-log-highlight
addhl -group git-log-highlight regex '^(commit) ([0-9a-f]+)$' 1:yellow 2:red
addhl -group git-log-highlight regex '^([a-zA-Z_-]+:) (.*?)$' 1:green 2:magenta
addhl -group git-log-highlight ref diff # highlight potential diffs from the -p option
}
hook global WinSetOption filetype=(?!git-log).* %{