From ad0b4caa648fe84eb1dff5e55d3f02d293b33ad1 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 14 Dec 2022 16:07:53 +0100 Subject: [PATCH] feat(ui): show `updates available` diagnostic when an update is available --- lua/lazy/view/render.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/lazy/view/render.lua b/lua/lazy/view/render.lua index 0f7feb5..886d324 100644 --- a/lua/lazy/view/render.lua +++ b/lua/lazy/view/render.lua @@ -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