feat: use installed html language server

This commit is contained in:
Michael Mandl 2023-10-16 20:54:16 +02:00
parent f7e66f11d5
commit 52dacfda31
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -71,6 +71,7 @@ local servers = {
["cmake"] = {},
["dockerls"] = {},
["eslint"] = {},
["html"] = {},
["jsonls"] = {},
["lua_ls"] = {
Lua = {
@ -181,13 +182,6 @@ for type, icon in pairs(diagnostics_signs) do
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end
-- setup html languageserver
lspconfig["html"].setup({
cmd = { "html-languageserver", "--stdio" },
on_attach = on_attach,
capabilities = capabilities,
})
-- setup volar
lspconfig["volar"].setup({
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json' },