fix(nvim-lint): check on linter name instead of linter. Fixes #1685
This commit is contained in:
1 file changed
+1
-1
@@ -27,7 +27,7 @@ return {
|
|||||||
|
|
||||||
local lint = require("lint")
|
local lint = require("lint")
|
||||||
for name, linter in pairs(opts.linters) do
|
for name, linter in pairs(opts.linters) do
|
||||||
if type(linter) == "table" and type(lint.linters) == "table" then
|
if type(linter) == "table" and type(lint.linters[name]) == "table" then
|
||||||
lint.linters[name] = vim.tbl_deep_extend("force", lint.linters[name], linter)
|
lint.linters[name] = vim.tbl_deep_extend("force", lint.linters[name], linter)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user