Skip to content

Commit

Permalink
feat(plugin): keep track of the module a spec fragment was defined in
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 3, 2023
1 parent 8b73492 commit 8eb8de2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function Spec:add(plugin, results)
fid = M.last_fid,
fpid = fpid,
dep = fpid ~= nil,
module = self.importing,
}
self.fragments[plugin._.fid] = plugin

Expand Down
1 change: 1 addition & 0 deletions lua/lazy/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
---@field dep? boolean True if this plugin is only in the spec as a dependency
---@field cond? boolean
---@field super? LazyPlugin
---@field module? string

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

Expand Down

0 comments on commit 8eb8de2

Please sign in to comment.