# some usable colorscheme colorscheme gruvbox-dark # line numbers add-highlighter global/ number-lines -hlcursor -relative -separator " " -cursor-separator " |" # show matching parens add-highlighter global/ show-matching set-option global tabstop 4 set-option global indentwidth 4 # show trailing whitespace add-highlighter global/ regex \h+$ 0:Error # softwrap long lines add-highlighter global/ wrap -word -indent # no terminal assistant set global ui_options terminal_assistant=none terminal_enable_mouse=false # tab completions 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 hook -once -always window InsertCompletionHide .* %{ unmap window insert unmap window insert } } } # lsp eval %sh{kak-lsp} lsp-enable lsp-auto-signature-help-enable lsp-auto-hover-enable lsp-auto-hover-insert-mode-enable 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' # copy to device clipboard hook global RegisterModified '"' %{ nop %sh{ wl-copy -- "$kak_main_reg_dquote" 2> /dev/null; }} # plugins source "%val{config}/plugins/plug.kak/rc/plug.kak" plug "andreyorst/plug.kak" noload plug "andreyorst/fzf.kak" map global user f ': fzf-mode' -docstring 'fzf mode' # # custom plugins # source ~/.config/kak/tv/tv.kak