Skip to content

Commit

Permalink
fix(nvim-lint): make sure to set custom linters. Fixes LazyVim#1687
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 12, 2023
1 parent cdae38d commit 8e71968
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/lazyvim/plugins/linting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ return {
for name, linter in pairs(opts.linters) do
if type(linter) == "table" and type(lint.linters[name]) == "table" then
lint.linters[name] = vim.tbl_deep_extend("force", lint.linters[name], linter)
else
lint.linters[name] = linter
end
end
lint.linters_by_ft = opts.linters_by_ft
Expand Down

0 comments on commit 8e71968

Please sign in to comment.