-
-
Notifications
You must be signed in to change notification settings - Fork 618
Tree highlight group color used if opening new buffers using vsplit preview with empty buffer #2951
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Is this the replicator for #245 #245 (comment) ? |
It looks like it's just the window picker being shown that is the issue here. laststatus 3 is the determining factor, which lualine is setting. Minimal config, only one file
|
Yes, this replicates the behaviour brought up in the discussion in #245. Thanks for finding a smaller config - one of the weird things was that files that were previously opened before everything was :wq-ed still opened with the uncorrupted colors, which is why I included multiple files in my config |
This is appears to be caused by There is no need to push and pop Tangential: using |
I'd be most grateful if you thoroughly tested a fix branch @maleksware It would be great to test whether the lualine flashing etc. are resolved. cd /path/to/nvim-tree.lua
git pull
git checkout 2951-highlights-incorrect-following-cancelled-pick When you're finished testing: git checkout master |
This seems to have fixed it, yay! Tested with Catppuccin as well, it works. Thanks a lot! Do you want me to follow up in that Lualine issue? Lualine flicker is still there, though. It seems shorter though, maybe that is just a re-rendering thing. And again, it only occurs when there is an empty buffer present. |
Many thanks, yes please! |
Description
When the first action upon opening Neovim is opening a file in vsplit preview while there is a default empty buffer and then closing all windows except the nvim-tree one, the colorscheme of subsequently opened windows is corrupted (NvimTreeNormal is applied to them). This is probably closely related to Lualine and its
globalstatus
configuration parameter.Neovim version
Operating system and version
Linux 6.11.2-arch1-1
Windows variant
No response
nvim-tree version
4a9e82d
Clean room replication
Steps to reproduce
An extra file with dummy contents is needed in the directory with the clean room config (let's call it
a.txt
).o
on lazy-lock.jsono
on init.lua, pick window Ba.txt
with either oro
from the tree or using :e a.txtThe issue is not reproduceable with Neotree and without
globalstatus = true
in Lualine (or when Lualine is disabled).The difference in colors is particularly noticeable when NvimTreeNormal significantly differs from the default window background.
Expected behavior
The highlight group is not applied to buffers opened after such operation.
Actual behavior
The opened buffer fully inherits the background and foreground colors of nvim-tree, signified by the NvimTreeNormal.

The text was updated successfully, but these errors were encountered: