Optimize file watchers to prevent ENOSPC errors
- Dominant language
- Fennel
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Problem
Getting ENOSPC (Error NO SPaCe) errors due to too many file watchers being consumed by Neovim plugins.
## Analysis Results
Major file watcher consumers identified:
- LSP servers (Volar, typescript-tools.nvim)
- Git plugins (gitsigns.nvim, diffview.nvim with watch_index=true)
- File explorer (Snacks.nvim picker.explorer)
- Auto-refresh features (Codelens refresh on TextChanged)
## Tasks
- [ ] Configure typescript-tools to ignore node_modules and large directories
- [ ] Set diffview.nvim watch_index to false
- [ ] Add LSP file watching optimizations
- [ ] Document system-level fix (increase inotify watches)
- [ ] Consider adding .ignore patterns for large directories
## System Fix
Document this command in README:
```bash
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.