add emmet_ls and eslint
This commit is contained in:
@@ -20,6 +20,8 @@ lsp_installer.setup({
|
|||||||
"prismals",
|
"prismals",
|
||||||
"sumneko_lua",
|
"sumneko_lua",
|
||||||
"svelte",
|
"svelte",
|
||||||
|
"emmet_ls",
|
||||||
|
"eslint",
|
||||||
},
|
},
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
})
|
})
|
||||||
@@ -84,6 +86,10 @@ for _, server in ipairs(servers) do
|
|||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if server.name == "emmet_ls" then
|
||||||
|
opts.filetypes = { "html", "css", "scss", "javascripreact", "typescriptreact" }
|
||||||
|
end
|
||||||
|
|
||||||
if server.name == "tailwindcss" then
|
if server.name == "tailwindcss" then
|
||||||
opts.root_dir = util.root_pattern("tailwind.config.js", "tailwind.config.cjs", "tailwind.config.mjs")
|
opts.root_dir = util.root_pattern("tailwind.config.js", "tailwind.config.cjs", "tailwind.config.mjs")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user