3dyuval / 3dyuval/nvim

Optimize file watchers to prevent ENOSPC errors

Offen
#48 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Fennel
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.