From c8257a58a5564c64e680fb89559b46da354a7d1c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 26 Oct 2017 13:46:26 +0800 Subject: [PATCH] kakrc.kak: set '-' as an additional word char --- rc/core/kakrc.kak | 1 + 1 file changed, 1 insertion(+) diff --git a/rc/core/kakrc.kak b/rc/core/kakrc.kak index 2c550bd3..ce9066aa 100644 --- a/rc/core/kakrc.kak +++ b/rc/core/kakrc.kak @@ -85,6 +85,7 @@ hook global WinSetOption filetype=kak %{ hook window InsertChar \n -group kak-indent kak-indent-on-new-line # cleanup trailing whitespaces on current line insert end hook window InsertEnd .* -group kak-indent %{ try %{ exec -draft \; s ^\h+$ d } } + set buffer extra_word_chars '-' } hook -group kak-highlight global WinSetOption filetype=(?!kak).* %{ remove-highlighter window/kakrc }