summaryrefslogtreecommitdiff
path: root/rc/core/diff.kak
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2017-01-04 01:07:45 +0100
committerAlex Leferry 2 <alexherbo2@gmail.com>2017-01-04 13:04:27 +0100
commit671b50bb524ecb7e7654549ab35fd1da0a184a7e (patch)
treee420dbabfacf90847f7658e054680a6c5736d45e /rc/core/diff.kak
parent8f821f0fba48366e0407e5cffece9fa5ffa5a67f (diff)
update command names
Diffstat (limited to 'rc/core/diff.kak')
-rw-r--r--rc/core/diff.kak12
1 files changed, 6 insertions, 6 deletions
diff --git a/rc/core/diff.kak b/rc/core/diff.kak
index f481b5a0..9371340e 100644
--- a/rc/core/diff.kak
+++ b/rc/core/diff.kak
@@ -2,10 +2,10 @@ hook global BufCreate .*\.(diff|patch) %{
set buffer filetype diff
}
-addhl -group / group diff
-addhl -group /diff regex "^\+[^\n]*\n" 0:green,default
-addhl -group /diff regex "^-[^\n]*\n" 0:red,default
-addhl -group /diff regex "^@@[^\n]*@@" 0:cyan,default
+add-highlighter -group / group diff
+add-highlighter -group /diff regex "^\+[^\n]*\n" 0:green,default
+add-highlighter -group /diff regex "^-[^\n]*\n" 0:red,default
+add-highlighter -group /diff regex "^@@[^\n]*@@" 0:cyan,default
-hook -group diff-highlight global WinSetOption filetype=diff %{ addhl ref diff }
-hook -group diff-highlight global WinSetOption filetype=(?!diff).* %{ rmhl diff }
+hook -group diff-highlight global WinSetOption filetype=diff %{ add-highlighter ref diff }
+hook -group diff-highlight global WinSetOption filetype=(?!diff).* %{ remove-highlighter diff }