diff --git a/home-environments/radio/files/.config/kak/kakrc b/home-environments/radio/files/.config/kak/kakrc index 9e45af8..97cac7f 100644 --- a/home-environments/radio/files/.config/kak/kakrc +++ b/home-environments/radio/files/.config/kak/kakrc @@ -364,80 +364,41 @@ hook global WinSetOption filetype=kak %{ } } -# __________ plugins __________ -source "%val{config}/plugins/plug.kak/rc/plug.kak" -plug "andreyorst/plug.kak" noload # manually installed plugin manager +hook global KakEnd .* %{ + evaluate-commands 'state-save-reg-save colon' + evaluate-commands 'state-save-reg-save pipe' + evaluate-commands 'state-save-reg-save slash' +} # save kakoune state -# configure this -plug "occivink/kakoune-phantom-selection" # work on multiple selections, one at a time +hook global KakBegin .* %{ + evaluate-commands 'state-save-reg-load colon' + evaluate-commands 'state-save-reg-load pipe' + evaluate-commands 'state-save-reg-load slash' +} # restore kakoune state -plug "maximbaz/surround.kak" # easily surround selections with parentesis or quotes - -plug "https://gitlab.com/Screwtapello/kakoune-texinfo" # read info pages inside kakoune - -plug "https://gitlab.com/Screwtapello/kakoune-state-save" config %{ - hook global KakBegin .* %{ - evaluate-commands 'state-save-reg-load colon' - evaluate-commands 'state-save-reg-load pipe' - evaluate-commands 'state-save-reg-load slash' - } - - hook global KakEnd .* %{ - evaluate-commands 'state-save-reg-save colon' - evaluate-commands 'state-save-reg-save pipe' - evaluate-commands 'state-save-reg-save slash' - } -} # save and restore state between sessions - -# plug "https://codeberg.org/anemofilia/relapath.kak" demand relapath %{ -# alias global cd relapath-change-directory -# alias global e relapath-edit -# alias global e! relapath-edit-bang -# -# alias global change-directory relapath-change-directory -# alias global edit relapath-edit -# alias global edit! relapath-edit-bang -# alias global rename-buffer relapath-rename-buffer -# -# relapath-modelinefmt-replace global -# } # no dereference symlinks - -plug 'delapouite/kakoune-buffers' # ease navigation between opened buffers. - -plug "https://gitlab.com/Screwtapello/kakoune-texinfo.git" # texinfo - -plug "jpcornwell/kakoune-sokoban" # sokoban because yes - -plug "lePerdu/kakboard" config %{ - hook global WinCreate .* %{ kakboard-enable } +hook global WinCreate .* %{ + kakboard-enable } # sync clipboards -plug "JJK96/kakoune-rainbow" -set-option global rainbow_opening "[[(]" -declare-option str-list rainbow_faces "rgb:a790d3" "rgb:6cdae0" "rgb:ff7f50" \ - "rgb:ffea8c" "rgb:83dcaf" "rgb:eba4d4" \ - "rgb:8b5be7" # add coloring to matching parenthesis +set-option global rainbow_opening "[[(]" +declare-option str-list rainbow_faces + "rgb:a790d3" "rgb:6cdae0" "rgb:ff7f50" \ + "rgb:ffea8c" "rgb:83dcaf" "rgb:eba4d4" \ + "rgb:8b5be7" -plug "alexherbo2/auto-pairs.kak" config %{ - set-option global auto_pairs ( ) { } [ ] '"' '"' "'" "'" ` ` - hook -group config global BufSetOption filetype=latex %{ - set-option buffer auto_pairs ( ) [ ] { } '"' '"' $ $ - } - hook -group config global BufSetOption filetype=scheme %{ - set-option buffer auto_pairs ( ) [ ] { } '"' '"' - } - hook -group config global BufSetOption filetype=typst %{ - set-option buffer auto_pairs ( ) [ ] { } '"' '"' $ $ * * - } - evaluate-commands enable-auto-pairs -} # auto-pairing of characters - -plug "Delapouite/kakoune-palette" config %{ - hook global BufOpenFile .*colorscheme.kak %{ - evaluate-commands palette-gutter - } -} # preview face colors in kakoune +# auto pairing +set-option global auto_pairs ( ) { } [ ] '"' '"' "'" "'" ` ` +hook -group config global BufSetOption filetype=latex %{ + set-option buffer auto_pairs ( ) [ ] { } '"' '"' $ $ +} +hook -group config global BufSetOption filetype=scheme %{ + set-option buffer auto_pairs ( ) [ ] { } '"' '"' +} +hook -group config global BufSetOption filetype=typst %{ + set-option buffer auto_pairs ( ) [ ] { } '"' '"' $ $ * * +} +evaluate-commands enable-auto-pairs # __________ lsp __________ eval %sh{kak-lsp --kakoune -s $kak_session}