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