This commit is contained in:
Markus Dieckmann 2023-05-30 10:01:29 +02:00
parent e9b7e23beb
commit 504efd4db4

View File

@ -43,9 +43,10 @@ local lsp_flags = {
}
local capabilities = require('cmp_nvim_lsp').default_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
capabilities.textDocument.completion.completionItem.snippetSupport = true
require('mason-lspconfig').setup_handlers {
function(server_name)
require('lspconfig')[server_name].setup {
@ -93,14 +94,15 @@ require('mason-lspconfig').setup_handlers {
require('lspconfig')['html'].setup {
on_attach = on_attach,
flags = lsp_flags,
cmd = { "html-languageserver", "--stdio" },
cmd = { "vscode-html-language-server", "--stdio" },
filetypes = { "html" },
init_options = {
configurationSection = { "html", "css", "javascript" },
embeddedLanguages = {
css = true,
javascript = true
}
},
provideFormatter = true
},
settings = {}
}