Enable snippet completion for certain lsp's
This commit is contained in:
parent
0bf40c8972
commit
0f0a5e592b
1 changed files with 14 additions and 1 deletions
|
|
@ -76,12 +76,25 @@ nvim_lsp.pyright.setup {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local snippet_capabilities = vim.deepcopy(capabilities);
|
||||||
|
snippet_capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||||
|
|
||||||
nvim_lsp.html.setup {
|
nvim_lsp.html.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = snippet_capabilities,
|
||||||
filetypes = { 'html', 'htmldjango' },
|
filetypes = { 'html', 'htmldjango' },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nvim_lsp.cssls.setup {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = snippet_capabilities,
|
||||||
|
}
|
||||||
|
|
||||||
|
nvim_lsp.jsonls.setup {
|
||||||
|
on_attach = on_attach,
|
||||||
|
capabilities = snippet_capabilities,
|
||||||
|
}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
nvim_lsp.yamlls.setup {
|
nvim_lsp.yamlls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue