mirror of https://codeberg.org/anemofilia/zero
radio: files: kak: Remove stateful management of plugins in kakrc
parent
71d42de750
commit
4fbfa8455f
|
@ -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
|
||||
|
||||
# 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 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 %{
|
||||
set-option global auto_pairs ( ) { } [ ] '"' '"' "'" "'" ` `
|
||||
hook -group config global BufSetOption filetype=latex %{
|
||||
# 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 %{
|
||||
}
|
||||
hook -group config global BufSetOption filetype=scheme %{
|
||||
set-option buffer auto_pairs ( ) [ ] { } '"' '"'
|
||||
}
|
||||
hook -group config global BufSetOption filetype=typst %{
|
||||
}
|
||||
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
|
||||
}
|
||||
evaluate-commands enable-auto-pairs
|
||||
|
||||
# __________ lsp __________
|
||||
eval %sh{kak-lsp --kakoune -s $kak_session}
|
||||
|
|
Loading…
Reference in New Issue