mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-20 05:16:45 +00:00
feat(pkg): import package specs in the scope of the plugin
This commit is contained in:
parent
75ffe56f70
commit
c1912e2348
1 changed files with 5 additions and 1 deletions
|
@ -86,7 +86,11 @@ end
|
||||||
function M.get_spec(plugin)
|
function M.get_spec(plugin)
|
||||||
local pkg = M.get(plugin)
|
local pkg = M.get(plugin)
|
||||||
local spec = pkg and pkg.spec
|
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
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue