feat: use installed html language server

main
mandlm 2023-10-16 20:54:16 +02:00
parent f7e66f11d5
commit 52dacfda31
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 1 additions and 7 deletions

View File

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