NTBBloodbath / galaxyline.nvim

neovim statusline plugin written in lua
MIT License
163 stars 16 forks source link

Highlight between sections #5

Open serhez opened 2 years ago

serhez commented 2 years ago

Hello!

I want to have a custom highlight between sections (between the left, mid and right sections). This highlight is simply {'NONE', 'NONE'), that is, transparent. When I'm not using the mid section, just the left and right ones, the space in between the sections seems to be transparent by default, as I want it. However, I just introduced some stuff in the mid section and now all space between left, right and mid has galaxyline's default background color.

Any tips? Is this a bug or am I missing some highlight config?

Thanks!

NOTE: This is originally an unresolved issue at glepnir/galaxyline.nvim (https://github.com/glepnir/galaxyline.nvim/issues/215).

NTBBloodbath commented 2 years ago

Hey, can you please send an screenshot about how does it looks like? By default galaxyline only sets the background color for the components that has a highlight field.

So maybe there's nothing between the left and mid, and also between the mid and right sections that could cause that this space uses the StatusLine highlighting group because it's empty (but don't trust me, I'm only thinking that this could be the actual problem).

axieax commented 2 years ago

image Hello is there a way to target the gap through a highlight group perhaps, since it isn't a component with a highlight field? Here is my config: https://github.com/axieax/dotconfig/blob/main/nvim/lua/plugins/galaxyline.lua