feat: use installed html language server
parent
f7e66f11d5
commit
52dacfda31
|
@ -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' },
|
||||
|
|
Loading…
Reference in New Issue