]> Freerunner's - kakoune-config.git/commitdiff
don't use wrapping by default
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 5 May 2025 15:42:33 +0000 (17:42 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Mon, 5 May 2025 15:45:54 +0000 (17:45 +0200)
kakrc

diff --git a/kakrc b/kakrc
index 5a4046ff02afef8f32e24e471750b69e53e2b927..5ab6a7d2db924b6d867a1bcb1fb9b33bd5f83b2c 100644 (file)
--- a/kakrc
+++ b/kakrc
@@ -70,8 +70,8 @@ hook global WinCreate [^*].* %{
 # 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
@@ -200,10 +200,6 @@ set-face global StatusLineInfo   blue,default,default
 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
 
@@ -382,6 +378,8 @@ map global buffermode -docstring 'next buffer'                           n  ': b
 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
 # ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────