We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d75598 commit 313015fCopy full SHA for 313015f
lua/lazy/core/plugin.lua
@@ -165,7 +165,16 @@ function Spec:merge(old, new)
165
vim.list_extend(values, type(old[k]) == "string" and { old[k] } or old[k])
166
---@diagnostic disable-next-line: no-unknown
167
old[k] = values
168
+ elseif k == "config" or k == "priority" then
169
+ old[k] = v
170
+ elseif k == "dependencies" then
171
+ for _, dep in ipairs(v) do
172
+ if not vim.tbl_contains(old[k], dep) then
173
+ table.insert(old[k], dep)
174
+ end
175
176
else
177
178
self:error("Merging plugins is not supported for key `" .. k .. "`\n" .. vim.inspect({ old = old, new = new }))
179
end
180
0 commit comments