fix(nvim): fixes eslint commant for EFM LS and start it for typescript
and glimmer files
This commit is contained in:
parent
714007013b
commit
f4ee62d918
1 changed files with 33 additions and 25 deletions
|
@ -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 },
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue