add-highlighter global/ number-lines addhl global/ wrap -word set -add global ui_options terminal_assistant=none set -add global ui_options terminal_status_on_top=true set global indentwidth 0 set global tabstop 4 map global user <c> ':comment-line<ret>' -docstring 'comment line' # map global user <x> '<a-|>wl-copy<ret>' -docstring 'wl-copy' add-highlighter global/longline column 70 ,rgb:333333 evaluate-commands %sh{ copy='printf "\033]52;;%s\033\\" $(base64 | tr -d "\n") > $( [ -n "$kak_client_pid" ] && echo /proc/$kak_client_pid/fd/0 || echo /dev/tty )' backend='OSC 52' printf "map global user -docstring 'yank to primary' y '<a-|>%s<ret>:echo -markup %%{{Information}copied selection to %s primary}<ret>'\n" "$copy" "$backend" } alias global Wq write-quit alias global W write # eval %sh{kak-lsp --kakoune -s $kak_session} # Not needed if you load it with plug.kak. # hook global WinSetOption filetype=(c) %{ # lsp-enable-window # } # map global user l %{:enter-user-mode lsp<ret>} -docstring "LSP mode" # map global insert <tab> '<a-;>:try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>' -docstring 'Select next snippet placeholder' # 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' # map global object t '<a-semicolon>lsp-object Class Interface Struct<ret>' -docstring 'LSP class interface or struct' # map global object d '<a-semicolon>lsp-diagnostic-object --include-warnings<ret>' -docstring 'LSP errors and warnings' # map global object D '<a-semicolon>lsp-diagnostic-object<ret>' -docstring 'LSP errors'