mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-30 09:46:38 +00:00
* feat(nvim): clean config, work in progress * feat: refactored plugins and configs * feat: stylua config, ufo, lsp refactor, cleanup * feat: renamed nvim to nvim-lazy, added alias * feat: renamed nvim-clean to be nvim, updated alias
21 lines
500 B
Lua
21 lines
500 B
Lua
return {
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
eslint = {},
|
|
tflint = {},
|
|
},
|
|
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,
|
|
},
|
|
},
|
|
}
|