details in kakrc
This commit is contained in:
@@ -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-down> '|echo "$(($kak_selection - 1))"<ret>'
|
||||
|
||||
hook global InsertCompletionShow .* %{
|
||||
try %{
|
||||
# this command temporarily removes cursors preceded by whitespace;
|
||||
# if there are no cursors left, it raises an error, does not
|
||||
# continue to execute the mapping commands, and the error is eaten
|
||||
# by the `try` command so no warning appears.
|
||||
execute-keys -draft 'h<a-K>\h<ret>'
|
||||
map window insert <tab> <c-n>
|
||||
map window insert <ret> <c-m>
|
||||
map window insert <s-tab> <c-p>
|
||||
hook -once -always window InsertCompletionHide .* %{
|
||||
unmap window insert <tab> <c-n>
|
||||
unmap window insert <ret> <c-m>
|
||||
unmap window insert <s-tab> <c-p>
|
||||
}
|
||||
}
|
||||
}
|
||||
# hook global InsertCompletionShow .* %{
|
||||
# try %{
|
||||
# # this command temporarily removes cursors preceded by whitespace;
|
||||
# # if there are no cursors left, it raises an error, does not
|
||||
# # continue to execute the mapping commands, and the error is eaten
|
||||
# # by the `try` command so no warning appears.
|
||||
# execute-keys -draft 'h<a-K>\h<ret>'
|
||||
# map window insert <tab> <c-n>
|
||||
# map window insert <ret> <c-m>
|
||||
# map window insert <s-tab> <c-p>
|
||||
# hook -once -always window InsertCompletionHide .* %{
|
||||
# unmap window insert <tab> <c-n>
|
||||
# unmap window insert <ret> <c-m>
|
||||
# unmap window insert <s-tab> <c-p>
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
# Convert spaces to tabs
|
||||
hook global BufWritePre .* %{
|
||||
@@ -54,12 +54,6 @@ hook global BufWritePre .* %{
|
||||
# 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}
|
||||
lsp-enable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user