nix/config/nvim/.gitignore
Harivansh Rathi cb25d55374 nvim: stop tracking plugin-manager lockfiles
lazy-lock.json and nvim-pack-lock.json are runtime state written by lazy.nvim
and vim.pack. Tracking them in the config tree breaks read-only deployments
(e.g. home-manager xdg.configFile, which symlinks files into /nix/store). When
vim.pack tries to update its lockfile through a ro symlink, it fails with:
  EACCES: permission denied: ~/.config/nvim/nvim-pack-lock.json

Moving both files to .gitignore lets the plugin managers create writable
copies at runtime in their expected locations.

Made-with: Cursor
2026-04-18 23:38:40 -04:00

14 lines
316 B
Text

/undodir
/tmp
.DS_Store
.nvimlog
*.swp
*.swo
*~
rpi/
# Plugin-manager lockfiles are runtime state, not config. Tracking them breaks
# read-only deployments (e.g. home-manager xdg.configFile, which symlinks into
# the nix store) because tools try to rewrite the lockfile in place.
lazy-lock.json
nvim-pack-lock.json