fix(nvim): fixes eslint commant for EFM LS and start it for typescript

and glimmer files
This commit is contained in:
Bruno Carlin 2025-02-11 15:23:05 +01:00
parent 714007013b
commit f4ee62d918

View file

@ -1,7 +1,8 @@
local eslint = { local eslint = {
lintCommand = 'eslint -f visualstudio --stdin --stdin-filename ${INPUT}', lintCommand = 'npx eslint -f visualstudio --cache --stdin --stdin-filename ${INPUT}',
lintIgnoreExitCode = true, lintIgnoreExitCode = true,
lintStdin = true, lintStdin = true,
rootMarkers = { "package.json" },
lintFormats = { lintFormats = {
"%f(%l,%c): %tarning %m", "%f(%l,%c): %tarning %m",
"%f(%l,%c): %trror %m", "%f(%l,%c): %trror %m",
@ -54,30 +55,37 @@ local hadolint = {
require('lspconfig').efm.setup { require('lspconfig').efm.setup {
filetypes = { cmd = {'efm-langserver'},
"bash", filetypes = {
"css", "bash",
"dockerfile", "css",
"fish", "dockerfile",
"javascript", "fish",
"markdown", "javascript",
"scss", "typescript",
"sh", "javascript.glimmer",
"vimwiki" "typescript.glimmer",
}, "markdown",
settings = { "scss",
rootMarkers = {".git/"}, "sh",
languages = { "vimwiki"
bash = { shellcheck }, },
css = { stylelint }, settings = {
dockerfile = { hadolint }, rootMarkers = {".git/"},
fish = { fish }, languages = {
javascript = { eslint }, bash = { shellcheck },
markdown = { mdlint }, css = { stylelint },
scss = { stylelint }, dockerfile = { hadolint },
sh = { shellcheck }, fish = { fish },
vimwiki = { mdlint }, javascript = { eslint },
} typescript = { eslint },
["javascript.glimmer"] = { eslint },
["typescript.glimmer"] = { eslint },
markdown = { mdlint },
scss = { stylelint },
sh = { shellcheck },
vimwiki = { mdlint },
} }
}
} }