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",
val = function()
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!"
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"
end
end,