details in kakrc

This commit is contained in:
2026-05-07 20:20:27 +02:00
parent e50d77b391
commit c8a2be1507
+17 -23
View File
@@ -27,23 +27,23 @@ map -docstring "Cursor nach unten erweitern" global normal <C-j> "<C><ret>"
map global normal <C-up> '|echo "$(($kak_selection + 1))"<ret>' map global normal <C-up> '|echo "$(($kak_selection + 1))"<ret>'
map global normal <C-down> '|echo "$(($kak_selection - 1))"<ret>' map global normal <C-down> '|echo "$(($kak_selection - 1))"<ret>'
hook global InsertCompletionShow .* %{ # hook global InsertCompletionShow .* %{
try %{ # try %{
# this command temporarily removes cursors preceded by whitespace; # # this command temporarily removes cursors preceded by whitespace;
# if there are no cursors left, it raises an error, does not # # if there are no cursors left, it raises an error, does not
# continue to execute the mapping commands, and the error is eaten # # continue to execute the mapping commands, and the error is eaten
# by the `try` command so no warning appears. # # by the `try` command so no warning appears.
execute-keys -draft 'h<a-K>\h<ret>' # execute-keys -draft 'h<a-K>\h<ret>'
map window insert <tab> <c-n> # map window insert <tab> <c-n>
map window insert <ret> <c-m> # map window insert <ret> <c-m>
map window insert <s-tab> <c-p> # map window insert <s-tab> <c-p>
hook -once -always window InsertCompletionHide .* %{ # hook -once -always window InsertCompletionHide .* %{
unmap window insert <tab> <c-n> # unmap window insert <tab> <c-n>
unmap window insert <ret> <c-m> # unmap window insert <ret> <c-m>
unmap window insert <s-tab> <c-p> # unmap window insert <s-tab> <c-p>
} # }
} # }
} # }
# Convert spaces to tabs # Convert spaces to tabs
hook global BufWritePre .* %{ hook global BufWritePre .* %{
@@ -54,12 +54,6 @@ hook global BufWritePre .* %{
# echo %sh{ sassc main.scss > main.css } # echo %sh{ sassc main.scss > main.css }
# } # }
nop %sh{ {
sleep 10
echo "eval -client '$kak_client' 'echo sleep ended'" |
kak -p ${kak_session}
} > /dev/null 2>&1 < /dev/null & }
eval %sh{kak-lsp} eval %sh{kak-lsp}
lsp-enable lsp-enable