lspconfig

This commit is contained in:
siduck76 2021-03-08 09:16:14 +05:30
parent 98201bcd16
commit ab3a365450
1 changed files with 21 additions and 0 deletions

View File

@ -1,2 +1,23 @@
vim.cmd [[ packadd nvim-lspconfig ]] vim.cmd [[ packadd nvim-lspconfig ]]
vim.cmd [[ packadd completion-nvim ]] vim.cmd [[ packadd completion-nvim ]]
-- Enable(broadcasting) snippet capability for completion
local html_snippet_capabilities = vim.lsp.protocol.make_client_capabilities()
html_snippet_capabilities.textDocument.completion.completionItem.snippetSupport = true
require'lspconfig'.html.setup {
on_attach = lsp_on_attach,
capabilities = html_snippet_capabilities,
cmd = { "html-languageserver", "--stdio" };
filetypes = { "html" };
init_opitons = {
configurationSection = { "html", "css", "javascript" };
embeddedLanguages = {
css = true,
javascript = true,
};
};
}
vim.g.completion_enable_snippet = 'UltiSnips'