mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(eslint): check if disabled before register
This commit is contained in:
parent
29dab35619
commit
ffe4169d03
1 changed files with 5 additions and 0 deletions
|
|
@ -14,6 +14,11 @@ return {
|
|||
},
|
||||
setup = {
|
||||
eslint = function()
|
||||
-- verify if vim.g.root_lsp_ignore table contains `eslint`
|
||||
if vim.tbl_contains(vim.g.root_lsp_ignore or {}, "eslint") then
|
||||
return true
|
||||
end
|
||||
|
||||
local function get_client(buf)
|
||||
return LazyVim.lsp.get_clients({ name = "eslint", bufnr = buf })[1]
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue