mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 09:18:51 +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")
|
local lint = require("lint")
|
||||||
for name, linter in pairs(opts.linters) do
|
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
|
end
|
||||||
lint.linters_by_ft = opts.linters_by_ft
|
lint.linters_by_ft = opts.linters_by_ft
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue