kakoune: use plugin-chain which uses less shell invocation on startup

This commit is contained in:
2026-05-03 22:31:49 +02:00
parent ecadd54569
commit 09aaa47790

View File

@@ -61,52 +61,42 @@ map global object t '<a-semicolon>lsp-object Class Interface Module Namespace St
map global object d '<a-semicolon>lsp-diagnostic-object error warning<ret>' -docstring 'LSP errors and warnings'
map global object D '<a-semicolon>lsp-diagnostic-object error<ret>' -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 <c-p> ': fzf-mode<ret>'
}
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<ret>' -docstring 'surround'
map global surround c ': change-surround<ret>' -docstring 'change'
map global surround d ': delete-surround<ret>' -docstring 'delete'
map global surround t ': select-surrounding-tag<ret>' -docstring 'select tag'
map global -docstring 'Surround' user 'S' ': enter-user-mode surround<ret>'
}
# 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 <j> ': easymotion-j<ret>'
map global -docstring 'easy k' user <k> ': easymotion-k<ret>'
map global -docstring 'easy w' user <w> ': easymotion-w<ret>'
map global -docstring 'easy b'user <b> ': easymotion-b<ret>'
}
# FZF recent
hook global BufCreate [^*].* %{
nop %sh{
mru=~/.cache/kak-mru
echo "$kak_buffile" | awk '!seen[$0]++' - "$mru" | sponge "$mru"
}}