diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-10-01 13:44:18 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-10-01 13:44:18 +0100 |
| commit | 6e17ecfb6eadc157cc5229f3c36f2962cfe1fcdf (patch) | |
| tree | 93f3bf619264ded0d13a230fc7e5f170a3a1a72a | |
| parent | e65aa4a6dedd2022c80eb92311d66cd2f56d933d (diff) | |
Fix golang.kak highlighting hooks
| -rw-r--r-- | rc/base/golang.kak | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc/base/golang.kak b/rc/base/golang.kak index 9d7ff315..5ffe02dc 100644 --- a/rc/base/golang.kak +++ b/rc/base/golang.kak @@ -84,9 +84,9 @@ def -hidden _golang-indent-on-closing-curly-brace %[ # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ -hook global WinSetOption filetype=golang %{ - addhl ref golang +hook -group golang-highlight global WinSetOption filetype=golang %{ addhl ref golang } +hook global WinSetOption filetype=golang %{ # cleanup trailing whitespaces when exiting insert mode hook window InsertEnd .* -group golang-hooks %{ try %{ exec -draft <a-x>s^\h+$<ret>d } } hook window InsertChar \n -group golang-indent _golang-indent-on-new-line @@ -96,7 +96,7 @@ hook global WinSetOption filetype=golang %{ set window formatcmd "gofmt" } -hool -group golang-highlight global WinSetOption filetype=(?!golang).* %{ rmhl golang } +hook -group golang-highlight global WinSetOption filetype=(?!golang).* %{ rmhl golang } hook global WinSetOption filetype=(?!golang).* %{ rmhooks window golang-hooks |
