File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,13 @@ function Spec:warn(msg)
141
141
end
142
142
143
143
function Spec :fix_disabled ()
144
+ -- handle weak plugins
145
+ for _ , plugin in pairs (self .plugins ) do
146
+ if plugin .weak and not plugin ._ .super then
147
+ self .plugins [plugin .name ] = nil
148
+ end
149
+ end
150
+
144
151
--- @type table<string,string[]> plugin to parent plugin
145
152
local dep_of = {}
146
153
Original file line number Diff line number Diff line change 47
47
--- @field dir string
48
48
--- @field enabled ? boolean | (fun (): boolean )
49
49
--- @field cond ? boolean | (fun (): boolean )
50
+ --- @field weak ? boolean If set , then this plugin will not be added unless it is added somewhere else
50
51
--- @field lazy ? boolean
51
52
--- @field priority ? number Only useful for lazy =false plugins to force loading certain plugins first. Default priority is 50
52
53
--- @field dev ? boolean If set , then link to the respective folder under your ~/projects
You can’t perform that action at this time.
0 commit comments