mirror of https://github.com/LazyVim/starter
23 lines
563 B
Lua
23 lines
563 B
Lua
return {
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
ensure_installed = {
|
|
"svelte",
|
|
},
|
|
servers = { eslint = {} },
|
|
setup = {
|
|
eslint = function()
|
|
require("lazyvim.util").lsp.on_attach(function(client)
|
|
if client.name == "eslint" then
|
|
client.server_capabilities.documentFormattingProvider = true
|
|
elseif client.name == "tsserver" then
|
|
client.server_capabilities.documentFormattingProvider = false
|
|
end
|
|
end)
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
}
|