# install bundle if not already installed # evaluate-commands %sh{ # if [ ! -d "$kak_config/bundle" || ! -f "$kak_config/bundle/kak-bundle/rc/kak-bundle.kak" ]; then # mkdir -p "$kak_config/bundle" &>/dev/null # git clone https://codeberg.org/jdugan6240/kak-bundle "$kak_config/bundle/kak-bundle" &>/dev/null # echo "bundle-install" # else # echo "nop" # fi # } # init bundle source "%val{config}/bundle/kak-bundle/rc/kak-bundle.kak" bundle-noload kak-bundle https://codeberg.org/jdugan6240/kak-bundle bundle inc-dec.kak https://gitlab.com/Screwtapello/kakoune-inc-dec %{ map -docstring "increment" global normal %{: inc-dec-modify-numbers + %val{count}} map -docstring "decrement" global normal %{: inc-dec-modify-numbers - %val{count}} } bundle auto-pairs.kak https://github.com/alexherbo2/auto-pairs.kak %{ enable-auto-pairs } bundle-noload fzf.kak https://github.com/andreyorst/fzf.kak %{ require-module fzf set-option global fzf_highlight_command "bat" require-module fzf-grep set-option global fzf_grep_command "rg" require-module fzf-file set-option global fzf_file_command "fd . --type f --follow --no-ignore-vcs" # set-option global fzf_file_command "fd . --no-ignore-vcs" map -docstring "fzf mode" global user f ": fzf-mode" } bundle luar https://github.com/gustavo-hms/luar %{ # require-module luar # set-option global luar_interpreter luajit } bundle peneira https://github.com/gustavo-hms/peneira %{ # require-module luar # set-option global luar_interpreter luajit # require-module peneira } bundle-noload easymotion.kak https://git.sr.ht/~voroskoi/easymotion.kak %{ require-module easymotion unmap global easymotion h unmap global easymotion j unmap global easymotion k unmap global easymotion l map global normal ': enter-user-mode easymotion' map global easymotion -docstring %{easymotion line ↓} ": easymotion-j" map global easymotion -docstring %{easymotion line ↑} ": easymotion-k" map global easymotion -docstring %{easymotion streak →} ": easymotion-streak-forward" map global easymotion -docstring %{easymotion streak ←} ": easymotion-streak-backward" set-option global easymotion_chars "tnseriplfuwydhcxoaqz" } bundle-noload byline.kak https://github.com/evanrelf/byline.kak %{ require-module "byline" } bundle case.kak https://gitlab.com/FlyingWombat/case.kak %{ map global user '`' ': enter-user-mode case' } bundle kakoune-hump https://github.com/delapouite/kakoune-hump %{ map global normal ': select-previous-hump' -docstring 'select prev hump' map global normal ': select-next-hump' -docstring 'select next hump' map global normal ': extend-previous-hump' -docstring 'extend prev hump' map global normal ': extend-next-hump' -docstring 'extend next hump' } bundle kakoune-buffers https://github.com/Delapouite/kakoune-buffers %{ map global user b ': enter-buffers-mode' -docstring 'buffers' } bundle vertical-selection https://github.com/occivink/kakoune-vertical-selection %{ declare-user-mode vertical-selection map -docstring "select alike down" global vertical-selection n ': vertical-selection-down' map -docstring "select alike up" global vertical-selection e ': vertical-selection-up' map -docstring "select alike up & down" global vertical-selection v ': vertical-selection-up-and-down' map global user v ": enter-user-mode vertical-selection" } bundle-noload kakoune-text-objects https://github.com/Delapouite/kakoune-text-objects %{ map global user s ': enter-user-mode selectors' -docstring 'selectors' } bundle smarttab.kak https://github.com/andreyorst/smarttab.kak %{ require-module smarttab set-option global softtabstop 2 hook global BufCreate .* %{ editorconfig-load autoconfigtab } } bundle pykak https://github.com/tomKPZ/pykak # plug "gustavo-hms/luar" %{ # # require-module luar # plug "gustavo-hms/peneira" %{ # require-module peneira # } # } bundle-theme one.kak https://github.com/raiguard/one.kak