Added eslintd to config
This commit is contained in:
@@ -30,6 +30,7 @@ return {
|
||||
ensure_installed = {
|
||||
"stylua",
|
||||
"clang-format",
|
||||
"eslint_d",
|
||||
},
|
||||
automatic_installation = true,
|
||||
})
|
||||
|
||||
@@ -13,6 +13,11 @@ return {
|
||||
sources = {
|
||||
formatting.stylua,
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user