diff --git a/kak/kakrc b/kak/kakrc index 1ebe495..1214511 100644 --- a/kak/kakrc +++ b/kak/kakrc @@ -27,23 +27,23 @@ map -docstring "Cursor nach unten erweitern" global normal "" map global normal '|echo "$(($kak_selection + 1))"' map global normal '|echo "$(($kak_selection - 1))"' -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\h' - map window insert - map window insert - map window insert - hook -once -always window InsertCompletionHide .* %{ - unmap window insert - unmap window insert - unmap window insert - } - } -} +# 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\h' +# map window insert +# map window insert +# map window insert +# hook -once -always window InsertCompletionHide .* %{ +# unmap window insert +# unmap window insert +# unmap window insert +# } +# } +# } # 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