-
-
Notifications
You must be signed in to change notification settings - Fork 633
Open
Labels
PR pleasenvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatednvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatedfeature requestperformanceperformance enhancementperformance enhancement
Description
Description
nvim-tree.lua spawns infinite watchers when the .zig-cache/tmp folder creates a temporary file during a build process. nvim-tree.lua locks the files and prevents zig from deleting it.
I assume this a windows only issue because windows locks files when they are open.
nvim-tree.log spits out this line 1933 times per second and nvim.exe grows in memory about 10-20 megabytes per second.
[2025-08-07 17:54:56] [watcher] event_cb 'M:\ComputerScience\GitLocal\c-engine\.zig-cache\tmp\2c5da8ef08bfc59e' 'M:\ComputerScience\GitLocal\c-engine\.zig-cache\tmp\2c5da8ef08bfc59e'
[2025-08-07 17:54:56] [watcher] node event scheduled refresh explorer:watch:M:\ComputerScience\GitLocal\c-engine\.zig-cache\tmp\2c5da8ef08bfc59e
Solution
add /.zig-cache
to default ignore_dirs for watcher
nvim-tree.lua/lua/nvim-tree.lua
Lines 415 to 424 in dd2364d
filesystem_watchers = { | |
enable = true, | |
debounce_delay = 50, | |
ignore_dirs = { | |
"/.ccls-cache", | |
"/build", | |
"/node_modules", | |
"/target", | |
}, | |
}, |
Neovim version
NVIM v0.11.3
Build type: Release
LuaJIT 2.1.1741730670
Operating system and version
Windows 10
Windows variant
Powershell
nvim-tree version
nvim-tree-v1.13.0
Clean room replication
uneccesary
Steps to reproduce
- make sure ./zig-cache is not filtered or ignored
- nvim
- zig build
Expected behavior
No response
Actual behavior
No response
Metadata
Metadata
Assignees
Labels
PR pleasenvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatednvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatedfeature requestperformanceperformance enhancementperformance enhancement