feat: use installed html language server

This commit is contained in:
mandlm 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' },