Skip to content

Commit

Permalink
feat(pkg): import package specs in the scope of the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 22, 2024
1 parent ec09586 commit 4c9493f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/lazy/pkg/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ end
function M.get_spec(plugin)
local pkg = M.get(plugin)
local spec = pkg and pkg.spec
return spec and type(spec) == "table" and vim.deepcopy(spec) or spec
if not spec then
return
end
spec = type(spec) == "table" and vim.deepcopy(spec) or spec
return { plugin.name, specs = spec }
end

return M

0 comments on commit 4c9493f

Please sign in to comment.