radio: files: kak: Remove stateful management of plugins in kakrc

main
Luis Guilherme Coelho 2024-11-13 03:23:15 -03:00
parent 71d42de750
commit 4fbfa8455f
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 29 additions and 68 deletions

View File

@ -364,62 +364,30 @@ hook global WinSetOption filetype=kak %{
}
}
# __________ plugins __________
source "%val{config}/plugins/plug.kak/rc/plug.kak"
plug "andreyorst/plug.kak" noload # manually installed plugin manager
# configure this
plug "occivink/kakoune-phantom-selection" # work on multiple selections, one at a time
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
} # save kakoune state
# 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
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 '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"
# add coloring to matching parenthesis
set-option global rainbow_opening "[[(]"
declare-option str-list rainbow_faces "rgb:a790d3" "rgb:6cdae0" "rgb:ff7f50" \
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
plug "alexherbo2/auto-pairs.kak" config %{
# auto pairing
set-option global auto_pairs ( ) { } [ ] '"' '"' "'" "'" ` `
hook -group config global BufSetOption filetype=latex %{
set-option buffer auto_pairs ( ) [ ] { } '"' '"' $ $
@ -431,13 +399,6 @@ plug "alexherbo2/auto-pairs.kak" config %{
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
# __________ lsp __________
eval %sh{kak-lsp --kakoune -s $kak_session}