lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
4.07k stars 102 forks source link

Indent highlight doesn't work #828

Closed alex35mil closed 7 months ago

alex35mil commented 7 months ago

Problem

After upgrade to v3, I can't change indent line color.

If I set default highlight, it is ignored. If I set a custom highlight, plugin errors out that the provided highlight doesn't exist, although I set it in my local theme. I tried to use hooks, but it has no effect. It seems like it's the loading order issue, but I can't load theme before the plugins, since I build theme with lush. I tried to load ibl on VeryLazy event, but it didn't work either.

Commit with update: https://github.com/alex35mil/dotfiles/commit/2a940d4537dae7370b403091e0336b7c3dcf6355 Plugin config Theme with highlight

Screenshots:

CleanShot 2024-01-16 at 13 14 24@2x

CleanShot 2024-01-16 at 13 01 15@2x

Steps to reproduce

My config: https://github.com/alex35mil/dotfiles/tree/2a940d4537dae7370b403091e0336b7c3dcf6355/home/.config/nvim

Expected behavior

Indent highlight works.

Neovim version (nvim -v)

v0.9.2

alex35mil commented 7 months ago

Yeah, if I start nvim with plugin disabled, and then IBLEnable, it picks up the highlight.

lukas-reineke commented 7 months ago

If you want to use highlight groups from your color scheme, you need to load the color scheme first.

alex35mil commented 7 months ago

Workaround

romgrk commented 5 months ago

Also seeing this issue. If it's really impossible to fix, it could use a note in the docs. But the autocmd ColorScheme is supposed to allow you to hook into colorscheme changes.