lualine.nvim icon indicating copy to clipboard operation
lualine.nvim copied to clipboard

Bug: Colors don't seem to work

Open GoodBoyNeon opened this issue 1 year ago • 3 comments

Self Checks

  • [x] I'm using the latest lualine.
  • [x] I didn't find the issue in exsisting issues or prs.

How to reproduce the problem

use neovim v0.5.1 open windows terminal put the following configuration:

require('lualine').setup {
  options = { theme = 'horizon' }
}

Expected behaviour

image

Actual behaviour

image

Minimal config to reproduce the issue

require('lualine').setup {
  options = { theme = 'horizon' }
}

Aditional information

GoodBoyNeon avatar Sep 07 '22 15:09 GoodBoyNeon

I've had the exact same issue with lualine + nord.nvim for the better part of this year. No indication as to what causes it either.

to be precise: lualine sets the statusline sections correctlyy, but does not enabe highlight groups.,

re-running the setup function sets the highlight groups correctly., ,until next restart of neovim.

norseghost avatar Sep 09 '22 04:09 norseghost

duplicate: there are way too many duplicates of this issue.

to be precise: lualine sets the statusline sections correctlyy, but does not enabe highlight groups.,

It enables highlight groups but your colorscheme removes them and doesn't even emit conventional event so other plugins get notified and syncronize.

Basically here you need to make sure your colorscheme gets loaded and applied before you call lualines setup not the other way around.

shadmansaleh avatar Sep 10 '22 09:09 shadmansaleh

Basically here you need to make sure your colorscheme gets loaded and applied before you call lualines setup not the other way around

Any ideas why things are still messed up when I do (and always have) define the color scheme before lualine in my packer setup? Packer compilation moving things around?

norseghost avatar Sep 13 '22 10:09 norseghost

You can try with packer after hook setup

use {
  "nvim-lualine/lualine.nvim", -- statusline plugin
  after = "zephyr-nvim", -- init after color scheme in order to prevent any overrides
  ...
}

yavorski avatar Feb 20 '23 23:02 yavorski