Skip to content

Commit

Permalink
fix(nvim-lint): check on linter name instead of linter. Fixes #1685
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 12, 2023
1 parent 666a69e commit cdae38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazyvim/plugins/linting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdae38d

Please sign in to comment.