Closed BulaBula-zy closed 4 months ago
I believe this is an issue with your colorscheme more than an isue with the heirline-nvchad-statusline.
Opening a dir on top vs a file directly below:
We can continue the discussion here, but closing this issue since it seems to me to be an issue with your config(a combination of astrocom plugins) more than an issue with the nvchad spec.
I found the issue may be caused by this plugin transparent
.
After I deleted transparent
, everything went fine.
I guess that heirline-nvchad-statusline
(or astronui
) uses the bg color of statusline as the mode icon and text, lsp separator, folder icon and nav icon color. So when statusline becomes transparent, the components above will change color as well.
Looking closely, I can see the bg color of the statusline is not same when opening a file and dir (both transparent
keep on).
So the issue seems to be why transparent
would have different UI behavior for opening a file and opening a dir. I'll probably look for some answers from there later. Anyway, I just choose to remove transparent
for now.
Checklist
Neovim version (nvim -v)
v0.9.5 release
Operating system/version
macOS Sonoma 14.4.1
Terminal/GUI
wezTerm
Describe the bug
A few days ago, I started migrating AstroNvim from v3 to v4.
At first, I found that the statusline plugin
heirline-mode-text-statusline
that I used in v3 was officially removed in v4.Then I found the replacement plugin
heirline-nvchad-statusline
and installed it with astrocommunity in v4. But then I got the following bug:When I open a file using
nvim
command, the statusline UI style differs from when I open a dir usingnvim
command.Steps to Reproduce
$HOME/.config/astronvim_v4
community.lua
to install pluginheirline-nvchad-statusline
nvim $HOME/.config/astronvim_v4
in wezTerminit.lua
in the neo-treenvim $HOME/.config/astronvim_v4/init.lua
in wezTermExpected behavior
The statusline UI style is expected to be consistent under both behaviors.
Specifically, the color of mode icon and text, lsp separator, folder icon and nav icon should be dark when I open a file using
nvim
command.Screenshots
This is when I open a dir:
And this is when I open a file:
Additional Context
I'm not sure whether this is how this plugin
heirline-nvchad-statusline
was originally designed, so that there are different statusline UI styles for opening file and dir withnvim
command, OR it is indeed a bug.Just in case, here's my config file and plugin version: