Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: lualine overrides theme hl groups #1397

Open
2 tasks done
drewma2k opened this issue Mar 28, 2025 · 3 comments
Open
2 tasks done

Bug: lualine overrides theme hl groups #1397

drewma2k opened this issue Mar 28, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@drewma2k
Copy link

drewma2k commented Mar 28, 2025

Self Checks

  • I'm using the latest lualine.
  • I didn't find the issue in existing issues or PRs.

How to reproduce the problem

  1. :hi StatusLine

Expected behaviour

Highlights are that of the theme I'm using

Actual behaviour

Highlights are overridden to match Normal

Minimal config to reproduce the issue

call plug#begin("/Users/drew/tmp/.local/share/nvim/plugged")
" Your plugins go here like
Plug 'nvim-lualine/lualine.nvim'


call plug#end()

" Your Viml part of config goes here
" colorscheme onedark


lua << END
-- Your lua part of config goes here
require'lualine'.setup {

}


END

Additional information

Introduced by #1315. Not sure if this is intended by design, but I don't think the plugin should overwrite existing hl groups unless necessary. Personally, I use the StatusLine hl group to overwrite the colors of all lualine components.

@drewma2k drewma2k added the bug Something isn't working label Mar 28, 2025
@psi4j
Copy link

psi4j commented Mar 30, 2025

Yes, I'm getting this ugly ass cyan when I use floaterm or the yazi plugin: #31748f

Trying to override the background with the StatusLine hl group doesn't work anymore.

@ATM-Jahid
Copy link

I'm also struggling to set a consistent statusline color because of this. Trying to set colors for hl groups doesn't work and that shouldn't be the case!

Parts of my lualine is now transparent:
Image

@nanozuki
Copy link

nanozuki commented Apr 4, 2025

This also affect my tabline configuration. I think to automatically override common highlight group is not acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants