Skip to content

Commit

Permalink
feat(ui): show updates available diagnostic when an update is avail…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
folke committed Dec 14, 2022
1 parent 8de617c commit ad0b4ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/lazy/view/render.lua
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ function M:diagnostics(plugin)
message = "updated from " .. plugin._.updated.from:sub(1, 7) .. " to " .. plugin._.updated.to:sub(1, 7),
})
end
elseif plugin._.has_updates then
self:diagnostic({
message = "updates available",
})
end
for _, task in ipairs(plugin._.tasks or {}) do
if task:is_running() then
Expand Down

0 comments on commit ad0b4ca

Please sign in to comment.