nvim config stolen from @Lukacms

This commit is contained in:
2023-11-03 11:24:41 +01:00
parent e881d7c7f5
commit 50c4761b4b
42 changed files with 1809 additions and 0 deletions

46
nvim/lua/lsp/elsint.lua Normal file
View File

@@ -0,0 +1,46 @@
local M = {}
M.setup = function(on_attach, capabilities)
require("lspconfig").eslint.setup({
capabilities = capabilities,
filetypes = {
"javascript",
"javascriptreact",
"javascript.jsx",
"typescript",
"typescriptreact",
"typescript.tsx",
"vue",
},
on_attach = on_attach,
settings = {
codeAction = {
disableRuleComment = {
enable = true,
location = "separateLine",
},
showDocumentation = {
enable = true,
},
},
codeActionOnSave = {
enable = false,
mode = "all",
},
format = false,
nodePath = "",
onIgnoredFiles = "off",
packageManager = "yarn",
quiet = false,
rulesCustomizations = {},
run = "onType",
useESLintClass = false,
validate = "on",
workingDirectory = {
mode = "location",
},
},
})
end
return M