mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
feat(ui): show new version that is available instead of general message
This commit is contained in:
parent
a9de5910f2
commit
34e2c78e06
6 changed files with 20 additions and 11 deletions
|
@ -35,7 +35,9 @@ M.log = {
|
|||
local info = assert(Git.info(self.plugin.dir))
|
||||
local target = assert(Git.get_target(self.plugin))
|
||||
assert(target.commit, self.plugin.name .. " " .. target.branch)
|
||||
self.plugin._.has_updates = target.commit ~= info.commit
|
||||
if target.commit ~= info.commit then
|
||||
self.plugin._.updates = { from = info, to = target }
|
||||
end
|
||||
table.insert(args, info.commit .. ".." .. target.commit)
|
||||
else
|
||||
vim.list_extend(args, opts.args or Config.options.git.log)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue