fix(nvim): ensure alpha plugin updates get correct highlight on update
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 38s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 38s
This commit is contained in:
parent
4c6234419e
commit
1570c3f223
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user