diff --git a/kakoune/.config/kak/kakrc b/kakoune/.config/kak/kakrc index 2076dc5..ed5f947 100644 --- a/kakoune/.config/kak/kakrc +++ b/kakoune/.config/kak/kakrc @@ -61,52 +61,42 @@ map global object t 'lsp-object Class Interface Module Namespace St map global object d 'lsp-diagnostic-object error warning' -docstring 'LSP errors and warnings' map global object D 'lsp-diagnostic-object error' -docstring 'LSP errors' -# PLUG +# PLUGINS source "%val{config}/plugins/plug.kak/rc/plug.kak" -plug "andreyorst/plug.kak" noload -# COLORSCHEME - -plug "https://codeberg.org/raiguard/kak-one" theme config %{ +plug-chain "andreyorst/plug.kak" noload %{ + # noload to avoid removing by plug-clean +} plug "https://codeberg.org/raiguard/kak-one" theme config %{ + # COLORSCHEME colorscheme 'one-darker' -} - -# FZF - -plug "andreyorst/fzf.kak" config %{ +} plug "andreyorst/fzf.kak" config %{ + # FZF map global normal ': fzf-mode' -} - -hook global BufCreate [^*].* %{ - nop %sh{ - mru=~/.cache/kak-mru - echo "$kak_buffile" | awk '!seen[$0]++' - "$mru" | sponge "$mru" -}} - -# SURROUND - -plug "h-youhei/kakoune-surround" config %{ +} plug "h-youhei/kakoune-surround" config %{ + # SURROUND declare-user-mode surround map global surround s ': surround' -docstring 'surround' map global surround c ': change-surround' -docstring 'change' map global surround d ': delete-surround' -docstring 'delete' map global surround t ': select-surrounding-tag' -docstring 'select tag' map global -docstring 'Surround' user 'S' ': enter-user-mode surround' -} - -# HARPOON - -plug "https://codeberg.org/raiguard/kak-harpoon" config %{ +} plug "https://codeberg.org/raiguard/kak-harpoon" config %{ + # HARPOON harpoon-add-bindings -} - -# EASYMOTION - -plug https://git.sr.ht/~voroskoi/easymotion.kak config %{ +} plug https://git.sr.ht/~voroskoi/easymotion.kak config %{ + # EASYMOTION require-module easymotion map global -docstring 'easy j' user ': easymotion-j' map global -docstring 'easy k' user ': easymotion-k' map global -docstring 'easy w' user ': easymotion-w' map global -docstring 'easy b'user ': easymotion-b' } + +# FZF recent + +hook global BufCreate [^*].* %{ + nop %sh{ + mru=~/.cache/kak-mru + echo "$kak_buffile" | awk '!seen[$0]++' - "$mru" | sponge "$mru" +}}