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 ':comment-line' -docstring 'comment line' # map global user 'wl-copy' -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 '%s:echo -markup %%{{Information}copied selection to %s primary}'\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} -docstring "LSP mode" # map global insert ':try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks tab> }' -docstring 'Select next snippet placeholder' # map global object a 'lsp-object' -docstring 'LSP any symbol' # map global object 'lsp-object' -docstring 'LSP any symbol' # map global object f 'lsp-object Function Method' -docstring 'LSP function or method' # map global object t 'lsp-object Class Interface Struct' -docstring 'LSP class interface or struct' # map global object d 'lsp-diagnostic-object --include-warnings' -docstring 'LSP errors and warnings' # map global object D 'lsp-diagnostic-object' -docstring 'LSP errors'