diff --git a/dotfiles/kak-lsp.toml b/dotfiles/kak-lsp.toml index 388094c..baa5ed4 100644 --- a/dotfiles/kak-lsp.toml +++ b/dotfiles/kak-lsp.toml @@ -6,7 +6,7 @@ # |_|\_\__,_|_|\_\ |_____|____/|_| -snippet_support = false +snippet_support = true verbosity = 2 [server] diff --git a/dotfiles/kak/plug.kak b/dotfiles/kak/plug.kak index 52938b2..c50c25d 100644 --- a/dotfiles/kak/plug.kak +++ b/dotfiles/kak/plug.kak @@ -50,6 +50,13 @@ plug 'kak-lsp/kak-lsp' do %{ hook global BufCreate .* %{try lsp-enable} + define-command -override -hidden lsp-next-placeholder-bind %{ + map global normal ': try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks tab> }' -docstring 'Select next snippet placeholder' + map global insert ': try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks tab> }' -docstring 'Select next snippet placeholder' + } + lsp-next-placeholder-bind + map global insert ": lsp-code-action-sync Fill" + define-command -override -hidden lsp-enable-decals %{ lsp-inlay-diagnostics-enable global lsp-inlay-hints-enable global