mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
feat: git log
This commit is contained in:
parent
54d5ff18f5
commit
3218c2d9ec
7 changed files with 83 additions and 6 deletions
|
@ -53,6 +53,9 @@ function M.run(operation, opts, filter)
|
|||
runner:add(Task.new(plugin, "run"))
|
||||
end
|
||||
plugin.dirty = false
|
||||
if operation == "update" then
|
||||
runner:add(Task.new(plugin, "log"))
|
||||
end
|
||||
end
|
||||
-- wait for post-install to finish
|
||||
runner:wait(on_done)
|
||||
|
@ -85,6 +88,14 @@ function M.update(opts)
|
|||
end)
|
||||
end
|
||||
|
||||
---@param opts? ManagerOpts
|
||||
function M.log(opts)
|
||||
---@param plugin LazyPlugin
|
||||
M.run("log", opts, function(plugin)
|
||||
return plugin.uri and plugin.installed
|
||||
end)
|
||||
end
|
||||
|
||||
---@param opts? ManagerOpts
|
||||
function M.clean(opts)
|
||||
opts = opts or {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue