mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 17:28:57 +02:00
fix(nvim-lint): dont try merging function linters
This commit is contained in:
parent
f4750859f2
commit
79010ae671
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ return {
|
|||
|
||||
local lint = require("lint")
|
||||
for name, linter in pairs(opts.linters) do
|
||||
lint.linters[name] = vim.tbl_deep_extend("force", lint.linters[name] or {}, linter)
|
||||
if type(linter) == "table" and type(lint.linters) == "table" then
|
||||
lint.linters[name] = vim.tbl_deep_extend("force", lint.linters[name], linter)
|
||||
end
|
||||
end
|
||||
lint.linters_by_ft = opts.linters_by_ft
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue