kak: enable snippets

This commit is contained in:
lelgenio 2022-06-21 16:46:54 -03:00
parent cb4c21c0bb
commit e3bdbbd3dc
2 changed files with 8 additions and 1 deletions

View File

@ -6,7 +6,7 @@
# |_|\_\__,_|_|\_\ |_____|____/|_|
snippet_support = false
snippet_support = true
verbosity = 2
[server]

View File

@ -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 <tab> ': try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>' -docstring 'Select next snippet placeholder'
map global insert <tab> '<a-;>: try lsp-snippets-select-next-placeholders catch %{ execute-keys -with-hooks <lt>tab> }<ret>' -docstring 'Select next snippet placeholder'
}
lsp-next-placeholder-bind
map global insert <c-o> "<esc>: lsp-code-action-sync Fill<ret>"
define-command -override -hidden lsp-enable-decals %{
lsp-inlay-diagnostics-enable global
lsp-inlay-hints-enable global