refactor(nvim): make heirline statusline exit buttons fade on inactivity

This commit is contained in:
Price Hiller 2023-09-05 19:17:58 -05:00
parent 336bea3973
commit d4dec5390d
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -381,13 +381,13 @@ return {
{ {
provider = " 󰅙 ", provider = " 󰅙 ",
hl = function(self) hl = function(self)
local bg local fg = colors.peachRed
if self.is_active then local bg = buffer_hl.active.bg
bg = buffer_hl.active.bg if not self.is_active then
else fg = colors.autumnRed
bg = buffer_hl.inactive.bg bg = buffer_hl.inactive.bg
end end
return { fg = colors.waveRed, bg = bg } return { fg = fg, bg = bg }
end, end,
on_click = { on_click = {
callback = function(_, minwid) callback = function(_, minwid)