mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
fix(pkg): versioning and reload specs when pkg-cache is dirty
This commit is contained in:
parent
66ea0ac86e
commit
5a311d04f6
5 changed files with 59 additions and 48 deletions
|
@ -34,6 +34,7 @@ M.commands = {
|
|||
health = function()
|
||||
vim.cmd.checkhealth("lazy")
|
||||
end,
|
||||
---@param opts ManagerOpts
|
||||
pkg = function(opts)
|
||||
local Pkg = require("lazy.pkg")
|
||||
Pkg.update()
|
||||
|
@ -44,7 +45,7 @@ M.commands = {
|
|||
},
|
||||
})
|
||||
for _, plugin in pairs(opts and opts.plugins or {}) do
|
||||
local spec = Pkg.get(plugin)
|
||||
local spec = Pkg.get(plugin.dir)
|
||||
Util.info(vim.inspect(spec), { lang = "lua", title = plugin.name })
|
||||
end
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue