diff options
| author | Justin Frank <justinpfrank@protonmail.com> | 2019-04-10 16:48:46 -0700 |
|---|---|---|
| committer | Justin Frank <justinpfrank@protonmail.com> | 2019-04-10 16:48:46 -0700 |
| commit | e959b99050492e820e2cf39154b87e5f4696defa (patch) | |
| tree | 4c656d4eab9f3a82a3ca31f2ec387e19fe0a1a96 /rc/filetype/fish.kak | |
| parent | 80ac46e09de0a30c0bf590fd50b6cbf9bfd1c41b (diff) | |
Fixed several more support files.
Diffstat (limited to 'rc/filetype/fish.kak')
| -rw-r--r-- | rc/filetype/fish.kak | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/rc/filetype/fish.kak b/rc/filetype/fish.kak index db62a354..49d0c9f8 100644 --- a/rc/filetype/fish.kak +++ b/rc/filetype/fish.kak @@ -8,10 +8,24 @@ hook global BufCreate .*[.](fish) %{ set-option buffer filetype fish } -hook -once global BufSetOption filetype=fish %{ +# Initialization +# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ + +hook global WinSetOption filetype=fish %{ require-module fish + + hook window InsertChar .* -group fish-indent fish-indent-on-char + hook window InsertChar \n -group fish-indent fish-indent-on-new-line + + hook -once -always window WinSetOption filetype=.* %{ remove-hooks window fish-.+ } } +hook -group fish-highlight global WinSetOption filetype=fish %{ + add-highlighter window/fish ref fish + hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/fish } +} + + provide-module fish %{ # Highlighters @@ -63,19 +77,4 @@ define-command -hidden fish-indent-on-new-line %{ } } -# Initialization -# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ - -hook -group fish-highlight global WinSetOption filetype=fish %{ - add-highlighter window/fish ref fish - hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/fish } -} - -hook global WinSetOption filetype=fish %{ - hook window InsertChar .* -group fish-indent fish-indent-on-char - hook window InsertChar \n -group fish-indent fish-indent-on-new-line - - hook -once -always window WinSetOption filetype=.* %{ remove-hooks window fish-.+ } -} - } |
