fix(nvim): ensure alpha plugin updates get correct highlight on update
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 38s

This commit is contained in:
Price Hiller 2024-11-13 08:58:17 -06:00
parent 4c6234419e
commit 1570c3f223
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -148,10 +148,10 @@ return {
type = "text", type = "text",
val = function() val = function()
if lstatus.has_updates() and lstatus.updates() then if lstatus.has_updates() and lstatus.updates() then
vim.api.nvim_set_hl(0, "AlphaPluginUpdate", { link = "@keyword.return" }) vim.api.nvim_set_hl(0, "AlphaPluginUpdate", { link = "@keyword.return", force = true })
return "Plugin updates available!" return "Plugin updates available!"
else else
vim.api.nvim_set_hl(0, "AlphaPluginUpdate", { link = "@string" }) vim.api.nvim_set_hl(0, "AlphaPluginUpdate", { link = "@string", force = true })
return "All plugins up to date" return "All plugins up to date"
end end
end, end,