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:
Maria José Solano 2023-10-22 22:52:54 -07:00 committed by GitHub
parent 42fb1e89ad
commit 4446fdb9af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 5 deletions

View file

@ -50,14 +50,12 @@ return {
title = "Breaking Changes",
},
{
---@param plugin LazyPlugin
filter = function(plugin)
return plugin._.updated and plugin._.updated.from ~= plugin._.updated.to
end,
title = "Updated",
},
{
---@param plugin LazyPlugin
filter = function(plugin)
return plugin._.cloned
end,
@ -66,7 +64,7 @@ return {
{
---@param plugin LazyPlugin
filter = function(plugin)
return plugin._.updates
return plugin._.updates ~= nil
end,
title = "Updates",
},
@ -90,9 +88,15 @@ return {
end,
title = "Not Installed",
},
{
filter = function (plugin)
return plugin._.outdated
end,
title = "Outdated",
},
{
filter = function(plugin)
return plugin._.loaded
return plugin._.loaded ~= nil
end,
title = "Loaded",
},