mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
feat(lint): added support for prepend_args to nvim-lint. Fixes #1887
This commit is contained in:
parent
8ceccd71e2
commit
4ab123fb31
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ 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)
|
||||
if type(linter.prepend_args) == "table" then
|
||||
vim.list_extend(lint.linters[name].args, linter.prepend_args)
|
||||
end
|
||||
else
|
||||
lint.linters[name] = linter
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue