mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(lint): make prepend_args opt work when default args is empty
This commit is contained in:
parent
329f9dda80
commit
4dc800c2c1
1 changed files with 1 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ return {
|
||||||
if type(linter) == "table" and type(lint.linters[name]) == "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)
|
lint.linters[name] = vim.tbl_deep_extend("force", lint.linters[name], linter)
|
||||||
if type(linter.prepend_args) == "table" then
|
if type(linter.prepend_args) == "table" then
|
||||||
|
lint.linters[name].args = lint.linters[name].args or {}
|
||||||
vim.list_extend(lint.linters[name].args, linter.prepend_args)
|
vim.list_extend(lint.linters[name].args, linter.prepend_args)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue