mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(plugin): added support for weak
specs. They will not be included in the final spec if not specified somwhere else
This commit is contained in:
parent
b382495d51
commit
8564f6d22b
2 changed files with 8 additions and 0 deletions
|
@ -141,6 +141,13 @@ function Spec:warn(msg)
|
|||
end
|
||||
|
||||
function Spec:fix_disabled()
|
||||
-- handle weak plugins
|
||||
for _, plugin in pairs(self.plugins) do
|
||||
if plugin.weak and not plugin._.super then
|
||||
self.plugins[plugin.name] = nil
|
||||
end
|
||||
end
|
||||
|
||||
---@type table<string,string[]> plugin to parent plugin
|
||||
local dep_of = {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue