diff --git a/.config/kak/autoload/lsp.kak b/.config/kak/autoload/lsp.kak new file mode 100644 index 00000000..f12db39e --- /dev/null +++ b/.config/kak/autoload/lsp.kak @@ -0,0 +1,17 @@ +# load plugin +eval %sh{kak-lsp} +lsp-enable + +# mappings +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' + +# Server Config