3dyuval / 3dyuval/nvim

Optimize file watchers to prevent ENOSPC errors

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.