Added eslintd to config
This commit is contained in:
@@ -30,6 +30,7 @@ return {
|
|||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"stylua",
|
"stylua",
|
||||||
"clang-format",
|
"clang-format",
|
||||||
|
"eslint_d",
|
||||||
},
|
},
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ return {
|
|||||||
sources = {
|
sources = {
|
||||||
formatting.stylua,
|
formatting.stylua,
|
||||||
formatting.clang_format,
|
formatting.clang_format,
|
||||||
|
diagnostics.eslint_d.with({
|
||||||
|
condition = function(utils)
|
||||||
|
return utils.root_has_file({ ".eslintrc.js", ".eslintrc.cjs" }) -- only enable if root has .eslintrc.js or .eslintrc.cjs
|
||||||
|
end,
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
|
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
|
|||||||
Reference in New Issue
Block a user