mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
feat(ui): added update checker
This commit is contained in:
parent
71e4b92fd6
commit
65cd28e613
5 changed files with 64 additions and 1 deletions
|
@ -31,6 +31,7 @@ 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
|
||||
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