Closed marene closed 1 year ago
sonokai
NvimTreeNormal xxx ctermfg=250 ctermbg=232 guifg=#e2e2e3 guibg=#222327
Normal xxx ctermfg=250 ctermbg=235 guifg=#e2e2e3 guibg=#2c2e34
default
NvimTreeNormal xxx links to Normal
Normal xxx cleared
sonokai is setting these colours: https://github.com/sainnhe/sonokai/blob/296f7fa3432f7d9b55b27ad0023f8824701cfec4/colors/sonokai.vim#L1396
mini.base16 does something similar. I overrode some of those: https://github.com/alex-courtis/arch/blob/a82926db74315757455b80ceef0652ffb321d1aa/config/nvim/lua/amc/init/appearance.lua#L29
Description
First of all, thanks again for this plugin, you've done an amazing work!
Here is the issue:
When I start neovim in a terminal And I set the colorscheme to
sonokai
And I open nvim-tree with:NvimTreeOpen
Then the background colour of the filetree is different than the background colour of the other windows.The issue seems to be coming from the
NvimTreeNormal
hl group not being linked properly to theNormal
group:After having a look around the code, I found that when this line is changed to
(notice the
<bang>
added to the:hi
command), then it the highlight groupNvimTreeNormal
gets linked toNormal
with all the expected colours and the filetree displays as expected.Not forcing the highlight groups link may have been a conscious decision to avoid nvim-tree messing with potentially pre-existing groups, but if that's the case then I am not sure how we could go about fixing it.
I'd be more than happy to help with this issue if needed!
Neovim version
Operating system and version
macOS 12.6.1
nvim-tree version
bbb6d48
Minimal config
Steps to reproduce
Expected behavior
the
ctermbg
of the nvim-tree window should be the same than for the rest of the windows.Actual behavior
The background color of the file tree is different than the rest of the windows. I believe the relevant highlight groups are:
Normal xxx ctermfg=250 ctermbg=235
NvimTreeNormal xxx ctermfg=250 ctermbg=232