nvim-neo-tree / neo-tree.nvim

Neovim plugin to manage the file system and other tree like structures.
MIT License
3.92k stars 225 forks source link

Arrow Background is incorrect #50

Closed mbriggs closed 2 years ago

mbriggs commented 2 years ago

Hi :)

I got this intermittently before, now it is constant https://github.com/nvim-neo-tree/neo-tree.nvim/issues/32

image

other icons seem fine.

When I got it intermittently, a second PackerCompile would confusingly make it go away (I would think that would be deterministic). Now it is sticking around

cseickel commented 2 years ago

Is your theme is applied via packer? If it is, then maybe the highlight groups are affected by the order in which plugins are setup.

The highlight group being used for this is NeoTreeDirectoryIcon, which will default to linking to TabLineSel if that group exists and has a background or foreground set. Can you check what the value is with :hi NeoTreeDirectoryIcon?

This will set it to the default value that I use:

:hi NeoTreeDirectoryIcon guibg=NONE guifg=#73cef4

Also, are you on 1.x or main?

mbriggs commented 2 years ago

Is your theme is applied via packer? yup

I tried changing the order, but maybe I screwed it up. I am using https://github.com/navarasu/onedark.nvim

image

:hi NeoTreeDirectoryIcon guibg=NONE guifg=#73cef4

that fixes it :)

Also, are you on 1.x or main?

1.x

cseickel commented 2 years ago

OK, you'll want to set that highlight group somewhere in your config. Maybe TabLineSel was a bad choice to link to!

In the next release, I'll just set it to the setting I gave you instead of trying to link to something.