Skip to content

Commit 8eb8de2

Browse files
committed
feat(plugin): keep track of the module a spec fragment was defined in
1 parent 8b73492 commit 8eb8de2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lua/lazy/core/plugin.lua

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ function Spec:add(plugin, results)
137137
fid = M.last_fid,
138138
fpid = fpid,
139139
dep = fpid ~= nil,
140+
module = self.importing,
140141
}
141142
self.fragments[plugin._.fid] = plugin
142143

lua/lazy/types.lua

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
---@field dep? boolean True if this plugin is only in the spec as a dependency
1818
---@field cond? boolean
1919
---@field super? LazyPlugin
20+
---@field module? string
2021

2122
---@alias PluginOpts table|fun(self:LazyPlugin, opts:table):table?
2223

0 commit comments

Comments
 (0)