mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
feat(ui): check pinned packages that can't be updated (#1139)
* style: fix filter types * feat: check outdated pinned plugins
This commit is contained in:
parent
42fb1e89ad
commit
4446fdb9af
5 changed files with 19 additions and 5 deletions
|
@ -42,7 +42,14 @@ M.log = {
|
|||
error("no target commit found")
|
||||
end
|
||||
assert(target.commit, self.plugin.name .. " " .. target.branch)
|
||||
if not Git.eq(info, target) then
|
||||
if Git.eq(info, target) then
|
||||
if Config.options.checker.check_pinned then
|
||||
local last_commit = Git.get_commit(self.plugin.dir, target.branch, true)
|
||||
if not Git.eq(info, { commit = last_commit }) then
|
||||
self.plugin._.outdated = true
|
||||
end
|
||||
end
|
||||
else
|
||||
self.plugin._.updates = { from = info, to = target }
|
||||
end
|
||||
table.insert(args, info.commit .. ".." .. target.commit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue