# after first sync of the dotfiles, bundle needs to be installed manually,
# in order to sync all other plugins with git"
-source "%val{config}/bundle/plugins/kak-bundle/rc/kak-bundle.kak"
-bundle kak-bundle https://codeberg.org/jdugan6240/kak-bundle
+source "%val{config}/bundle/kak-bundle/rc/kak-bundle.kak"
+bundle-noload kak-bundle https://codeberg.org/jdugan6240/kak-bundle
bundle kakoune-sudo-write https://github.com/occivink/kakoune-sudo-write
bundle kakoune-find https://github.com/occivink/kakoune-find
bundle kakoune-expand https://github.com/occivink/kakoune-expand
set-face global StatusLineMode black,yellow,default
set-face global StatusLineValue green,default,default
-
-# wrapping only word-wise
-add-highlighter global/ wrap -word -indent
-
# trailing whitespaces in red
add-highlighter global/trailing-whitespace regex '\h+$' 0:Error
map global buffermode -docstring 'previous buffer' p ': buffer-previous<ret>'
map global buffermode -docstring 'wrap enable' w ': add-highlighter buffer/bw wrap<ret>'
map global buffermode -docstring 'Wrap disable' W ': remove-highlighter buffer/bw<ret>'
+map global buffermode -docstring 'Word-wrap enable' <a-w> ': add-highlighter buffer/wordwrap wrap -word -indent<ret>'
+map global buffermode -docstring 'Word-wrap disable' <a-W> ': remove-highlighter buffer/wordwrap<ret>'
# selection user mode
# ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────