fix(nvim-lint): check on linter name instead of linter. Fixes #1685

This commit is contained in:
Folke Lemaitre 2023-10-12 20:28:56 +02:00
parent 666a69e6e0
commit cdae38ddd4
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -27,7 +27,7 @@ return {
local lint = require("lint")
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)
end
end