Closed JasZhe closed 1 year ago
I'll have to try tokyonight
specifically. I just tried with default
and darkblue
, doing:
colorscheme default
highlight clear
colorscheme darkblue
The icons came back for me. I'll try with tokyonight though
Not sure if this'll help pinpoint the issue, but I'm using iTerm2. Also it seems like it's solely the filetype icon color that disappears, the file modified icon still has color, for instance.
I managed to reproduce with these steps:
nvim --clean
--cmd 'set rtp+=~/.local/share/nvim/lazy/tokyonight.nvim' # or your tokyonight path
--cmd 'colorscheme tokyonight'
--cmd 'set rtp+=~/.local/share/nvim/lazy/nvim-web-devicons' # or your nvim-web-devicons path
-c 'set rtp+=~/.local/share/nvim/lazy/barbar.nvim' # or your barbar path
a.txt foo.html b.c
lua require'bufferline'.setup()
colorscheme default
Et voilà! The icon colors are gone. Repro with any colorscheme, not just tokyonight. E.g. default
and darkblue
also fail here
Can you confirm #388 fixes this?
yup no longer seeing the issue with the fix in https://github.com/romgrk/barbar.nvim/pull/388 thanks!
Description Similar to https://github.com/romgrk/barbar.nvim/issues/83 except syntax enable is fine now, it's only related to changing colorschemes.
Changing colorscheme after the initial vim setup would break the icon highlights. I'm still new to neovim so I've been working on adding plugins and stuff. I noticed this issue after doing
:source init.vim
after changing something. The colorscheme being set ininit.vim
is fine.To Reproduce
init.vim:
Steps to reproduce the behavior:
:colorscheme tokyonight
onedark also has the same issue so I'm guessing it has to do withhighlight clear
in colorschemesActual:
icon highlights for files disappearsExpected:
Icon highlights remainScreenshots
![image](https://user-images.githubusercontent.com/15258281/225521022-7da973f7-9401-4e2e-91a2-eb10d24b7c74.png)
Informations Neovim version: v0.8.3