kakoune: use kak-bundle
This commit is contained in:
@@ -65,42 +65,47 @@ 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 warning<ret>' -docstring 'LSP errors and warnings'
|
||||||
map global object D '<a-semicolon>lsp-diagnostic-object error<ret>' -docstring 'LSP errors'
|
map global object D '<a-semicolon>lsp-diagnostic-object error<ret>' -docstring 'LSP errors'
|
||||||
|
|
||||||
# PLUGINS
|
# BUNDLE
|
||||||
|
|
||||||
source "%val{config}/plugins/plug.kak/rc/plug.kak"
|
source "%val{config}/bundle/kak-bundle/rc/kak-bundle.kak"
|
||||||
|
bundle-noload kak-bundle https://codeberg.org/jdugan6240/kak-bundle
|
||||||
|
|
||||||
plug-chain "andreyorst/plug.kak" noload %{
|
# COLORSCHEME
|
||||||
# noload to avoid removing by plug-clean
|
|
||||||
} plug "https://codeberg.org/raiguard/kak-one" theme config %{
|
bundle-theme kak-one "https://codeberg.org/raiguard/kak-one"
|
||||||
# COLORSCHEME
|
colorscheme 'one-darker'
|
||||||
colorscheme 'one-darker'
|
|
||||||
} plug "andreyorst/fzf.kak" config %{
|
bundle-theme kakoune-themes "https://codeberg.org/anhsirk0/kakoune-themes"
|
||||||
# FZF
|
|
||||||
|
# FZF
|
||||||
|
|
||||||
|
bundle fzf.kak "https://github.com/andreyorst/fzf.kak" %{
|
||||||
map global normal <c-p> ': fzf-mode<ret>'
|
map global normal <c-p> ': fzf-mode<ret>'
|
||||||
} plug "h-youhei/kakoune-surround" config %{
|
}
|
||||||
# SURROUND
|
|
||||||
|
# SURROUND
|
||||||
|
|
||||||
|
bundle kakoune-surround "h-youhei/kakoune-surround" %{
|
||||||
declare-user-mode surround
|
declare-user-mode surround
|
||||||
map global surround s ': surround<ret>' -docstring 'surround'
|
map global surround s ': surround<ret>' -docstring 'surround'
|
||||||
map global surround c ': change-surround<ret>' -docstring 'change'
|
map global surround c ': change-surround<ret>' -docstring 'change'
|
||||||
map global surround d ': delete-surround<ret>' -docstring 'delete'
|
map global surround d ': delete-surround<ret>' -docstring 'delete'
|
||||||
map global surround t ': select-surrounding-tag<ret>' -docstring 'select tag'
|
map global surround t ': select-surrounding-tag<ret>' -docstring 'select tag'
|
||||||
map global -docstring 'Surround' user 'S' ': enter-user-mode surround<ret>'
|
map global -docstring 'Surround' user 'S' ': enter-user-mode surround<ret>'
|
||||||
} plug "https://codeberg.org/raiguard/kak-harpoon" config %{
|
}
|
||||||
# HARPOON
|
|
||||||
|
# HARPOON
|
||||||
|
|
||||||
|
bundle kak-harpoon "https://codeberg.org/raiguard/kak-harpoon" %{
|
||||||
harpoon-add-bindings
|
harpoon-add-bindings
|
||||||
} plug https://git.sr.ht/~voroskoi/easymotion.kak config %{
|
}
|
||||||
# EASYMOTION
|
|
||||||
|
# EASYMOTION
|
||||||
|
|
||||||
|
bundle easymotion.kak https://git.sr.ht/~voroskoi/easymotion.kak %{
|
||||||
require-module easymotion
|
require-module easymotion
|
||||||
map global -docstring 'easy j' user <j> ': easymotion-j<ret>'
|
map global -docstring 'easy j' user <j> ': easymotion-j<ret>'
|
||||||
map global -docstring 'easy k' user <k> ': easymotion-k<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 w' user <w> ': easymotion-w<ret>'
|
||||||
map global -docstring 'easy b'user <b> ': easymotion-b<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"
|
|
||||||
}}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user