We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7af8a31 commit 695a058Copy full SHA for 695a058
lua/lazy/core/plugin.lua
@@ -21,7 +21,7 @@ M.Spec = Spec
21
M.LOCAL_SPEC = ".lazy.lua"
22
23
---@param spec? LazySpec
24
----@param opts? {optional?:boolean}
+---@param opts? {optional?:boolean, pkg?:boolean}
25
function Spec.new(spec, opts)
26
local self = setmetatable({}, Spec)
27
self.meta = Meta.new(self)
@@ -30,7 +30,9 @@ function Spec.new(spec, opts)
30
self.notifs = {}
31
self.ignore_installed = {}
32
self.optional = opts and opts.optional
33
- self.meta:load_pkgs()
+ if not (opts and opts.pkg == false) then
34
+ self.meta:load_pkgs()
35
+ end
36
if spec then
37
self:parse(spec)
38
end
0 commit comments