diff --git a/rc/core/kakrc.kak b/rc/core/kakrc.kak index a0f989c4..1d03eb5f 100644 --- a/rc/core/kakrc.kak +++ b/rc/core/kakrc.kak @@ -97,7 +97,7 @@ hook -group kak-highlight global WinSetOption filetype=kak %{ add-highlighter wi hook global WinSetOption filetype=kak %~ hook window InsertChar \n -group kak-indent kak-indent-on-new-line hook window InsertChar [>)}\]] -group kak-indent kak-indent-on-closing-matching - hook window InsertChar (?![>)}\]])[^\s\w] -group kak-indent kak-indent-on-closing-char + hook window InsertChar (?![[{(<>)}\]])[^\s\w] -group kak-indent kak-indent-on-closing-char # cleanup trailing whitespaces on current line insert end hook window ModeChange insert:.* -group kak-indent %{ try %{ execute-keys -draft \; s ^\h+$ d } } set-option buffer extra_word_chars '-'