mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: added "Lazy check" to check for updates without updating
This commit is contained in:
parent
d486bc586b
commit
63cf2a52bd
4 changed files with 25 additions and 4 deletions
|
@ -83,6 +83,20 @@ function M.update(opts)
|
|||
end)
|
||||
end
|
||||
|
||||
function M.check(opts)
|
||||
opts = opts or {}
|
||||
M.run({
|
||||
pipeline = {
|
||||
"git.fetch",
|
||||
"wait",
|
||||
{ "git.log", check = true },
|
||||
},
|
||||
plugins = function(plugin)
|
||||
return plugin.uri and plugin._.installed
|
||||
end,
|
||||
}, opts)
|
||||
end
|
||||
|
||||
---@param opts? ManagerOpts
|
||||
function M.log(opts)
|
||||
M.run({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue