mirror of https://codeberg.org/anemofilia/zero
radio: files: kak: Remove stateful management of plugins in kakrc
parent
e85f07f57e
commit
7abed19266
|
@ -364,80 +364,41 @@ hook global WinSetOption filetype=kak %{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# __________ plugins __________
|
hook global KakEnd .* %{
|
||||||
source "%val{config}/plugins/plug.kak/rc/plug.kak"
|
evaluate-commands 'state-save-reg-save colon'
|
||||||
plug "andreyorst/plug.kak" noload # manually installed plugin manager
|
evaluate-commands 'state-save-reg-save pipe'
|
||||||
|
evaluate-commands 'state-save-reg-save slash'
|
||||||
|
} # save kakoune state
|
||||||
|
|
||||||
# configure this
|
hook global KakBegin .* %{
|
||||||
plug "occivink/kakoune-phantom-selection" # work on multiple selections, one at a time
|
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
|
hook global WinCreate .* %{
|
||||||
|
kakboard-enable
|
||||||
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 }
|
|
||||||
} # sync clipboards
|
} # 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
|
# 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 %{
|
# 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 ( ) [ ] { } '"' '"' $ $
|
||||||
}
|
}
|
||||||
hook -group config global BufSetOption filetype=scheme %{
|
hook -group config global BufSetOption filetype=scheme %{
|
||||||
set-option buffer auto_pairs ( ) [ ] { } '"' '"'
|
set-option buffer auto_pairs ( ) [ ] { } '"' '"'
|
||||||
}
|
}
|
||||||
hook -group config global BufSetOption filetype=typst %{
|
hook -group config global BufSetOption filetype=typst %{
|
||||||
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