bug: Inconsistent background colors in lualine
and transparent background
#421
Labels
bug
Something isn't working
lualine
and transparent background
#421
Neovim version (nvim -v)
0.95
Operating system/version
MacOS 13.6.4 / Springdale Linux 9.2
Describe the bug
The theme's integration with
lualine
works well out of the box. Note that thelualine_c
component has a background color that is darker than the theme's background:However, when enabling background transparency (i.e.
{ options = { transparent = true } }
), thelualine
integration falls back to no background color for thelualine_c
component:I am reporting this as a bug as I believe that enabling background transparency should only affect highlight groups that have assigned the background color, and the
lualine_c
component should remain highlighted with a different color, regardless of background transparency.However, this behavior seems to occur by design:
lua/nightfox/util/lualine.lua
defines a background color for this component that is empty if transparency is enabled:nightfox.nvim/lua/nightfox/util/lualine.lua
Line 8 in a408e6b
nightfox.nvim/lua/nightfox/util/lualine.lua
Lines 16 to 20 in a408e6b
Steps To Reproduce
nightfox
andlualine
require('nightfox').setup({ { options = { transparent = true } } })
andrequire('lualine').setup()
Expected Behavior
The
lualine_c
component should remain highlighted with the same background color that it has when transparency is not enabled:Repro
The text was updated successfully, but these errors were encountered: