3dyuval / 3dyuval/nvim

Optimize file watchers to prevent ENOSPC errors

未关闭
#48 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Fennel
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。