My configurations for the software I use

Fix keybind clobbering so we can use lsp-snippets

yemou.pink c6d2209c 3d554f2c

verified
Changed files
+9 -8
config
kak
+9 -8
config/kak/kakrc
···
hook global WinSetOption filetype=(c|cpp|erlang|go|java|javascript|nix|python|roc|typst|zig) %{
lsp-enable-window
-
map global user l %{:enter-user-mode lsp<ret>} -docstring 'Enter kak-lsp mode'
+
map global user l ':enter-user-mode lsp<ret>' -docstring 'Enter kak-lsp mode'
map global insert -docstring %{
Select next snippet placeholder
-
} <tab> '<a-;>:try lsp-snippets-select-next-placeholders catch %{execute-keys -with-hooks <lt>tab> }<ret>'
-
+
} <c-space> '<a-semicolon>:lsp-snippets-select-next-placeholders<ret>'
map global object a '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
map global object <a-a> '<a-semicolon>lsp-object<ret>' -docstring 'LSP any symbol'
map global object f '<a-semicolon>lsp-object Function Method<ret>' -docstring 'LSP function or method'
···
m-whitespace %{
evaluate-commands %sh{
[ "$1" = tabs ] \
-
&& printf '%s\n' "eval map window insert <tab> <tab>" \
-
"eval set window indentwidth 0" \
-
"eval set window tabstop $2"
+
&& printf '%s\n' \
+
"eval set window indentwidth 0" \
+
"eval set window tabstop $2" \
+
"eval map window insert <tab> <tab>"
[ "$1" = spaces ] && {
s=0
···
s=$((s+1))
done
-
printf '%s\n' "eval map window insert <tab> \"$size\"" \
-
"eval set window indentwidth $2"
+
printf '%s\n' \
+
"eval set window indentwidth $2" \
+
"eval map window insert <tab> \"$size\""
}
}
}