-
-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
highlight_opened_files looks like doesn't work in explorer/init.lua #3101
Comments
Good catch, that looks like an error intruduced during a refactor. It should be Why do we reload on this event? |
It looks like the |
It looks like a draw is sufficient for the buffer loaded / unloaded cases, following the highlight overhaul. It is not sufficient for the |
@KH9IZ many thanks for finding this one; it's a big performance hit. I'd be most grateful if you thoroughly tested a fix branch cd /path/to/nvim-tree.lua
git pull
git checkout 3101-incorrect-option-read-during-BufReadPost When you're finished testing: git checkout master |
@alex-courtis Yeah, that's much better. Thank you! |
Description
Found strange high level option
highlight_opened_files
used in explorer/init.luanvim-tree.lua/lua/nvim-tree/explorer/init.lua
Line 104 in c3c1935
nvim-tree.lua/lua/nvim-tree/explorer/init.lua
Line 116 in c3c1935
Is it forgotten
self.renderer.highlight_opened_files
or some hidden option?For this reason can't force tree-nvim not to reload explorer for each opened file
Neovim version
Operating system and version
Linux 6.8.0-52-generic, 22.04.1-Ubuntu
Windows variant
No response
nvim-tree version
c09ff35
Clean room replication
Steps to reproduce
highlight_opened_files = "none",
Expected behavior
No reload on open new buffer
Actual behavior
Reload on each open and close buffer
The text was updated successfully, but these errors were encountered: