mirror of https://codeberg.org/anemofilia/zero
radio: files: kak: Remove stateful management of plugins in kakrc
parent
71d42de750
commit
4fbfa8455f
|
@ -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 .* %{
|
hook global KakEnd .* %{
|
||||||
evaluate-commands 'state-save-reg-save colon'
|
evaluate-commands 'state-save-reg-save colon'
|
||||||
evaluate-commands 'state-save-reg-save pipe'
|
evaluate-commands 'state-save-reg-save pipe'
|
||||||
evaluate-commands 'state-save-reg-save slash'
|
evaluate-commands 'state-save-reg-save slash'
|
||||||
}
|
} # save kakoune state
|
||||||
} # save and restore state between sessions
|
|
||||||
|
|
||||||
# plug "https://codeberg.org/anemofilia/relapath.kak" demand relapath %{
|
hook global KakBegin .* %{
|
||||||
# alias global cd relapath-change-directory
|
evaluate-commands 'state-save-reg-load colon'
|
||||||
# alias global e relapath-edit
|
evaluate-commands 'state-save-reg-load pipe'
|
||||||
# alias global e! relapath-edit-bang
|
evaluate-commands 'state-save-reg-load slash'
|
||||||
#
|
} # restore kakoune state
|
||||||
# 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.
|
hook global WinCreate .* %{
|
||||||
|
kakboard-enable
|
||||||
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 }
|
|
||||||
} # sync clipboards
|
} # sync clipboards
|
||||||
|
|
||||||
plug "JJK96/kakoune-rainbow"
|
# add coloring to matching parenthesis
|
||||||
set-option global rainbow_opening "[[(]"
|
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:ffea8c" "rgb:83dcaf" "rgb:eba4d4" \
|
||||||
"rgb:8b5be7"
|
"rgb:8b5be7"
|
||||||
# add coloring to matching parenthesis
|
|
||||||
|
|
||||||
plug "alexherbo2/auto-pairs.kak" config %{
|
# auto pairing
|
||||||
set-option global auto_pairs ( ) { } [ ] '"' '"' "'" "'" ` `
|
set-option global auto_pairs ( ) { } [ ] '"' '"' "'" "'" ` `
|
||||||
hook -group config global BufSetOption filetype=latex %{
|
hook -group config global BufSetOption filetype=latex %{
|
||||||
set-option buffer auto_pairs ( ) [ ] { } '"' '"' $ $
|
set-option buffer auto_pairs ( ) [ ] { } '"' '"' $ $
|
||||||
|
@ -431,13 +399,6 @@ plug "alexherbo2/auto-pairs.kak" config %{
|
||||||
set-option buffer auto_pairs ( ) [ ] { } '"' '"' $ $ * *
|
set-option buffer auto_pairs ( ) [ ] { } '"' '"' $ $ * *
|
||||||
}
|
}
|
||||||
evaluate-commands enable-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 __________
|
# __________ lsp __________
|
||||||
eval %sh{kak-lsp --kakoune -s $kak_session}
|
eval %sh{kak-lsp --kakoune -s $kak_session}
|
||||||
|
|
Loading…
Reference in New Issue