Fix lazy.nvim Local Changes That Block vimdoc-ja Updates

Discard regenerated doc/tags-ja so lazy.nvim can update vimdoc-ja

I moved plugin management over to lazy.nvim when I migrated from init.vim to init.lua . On top of that, I also installed vimdoc-ja (in Japanese) as a lazy.nvim plugin so I could read :help in Japanese. When I started Neovim, lazy.nvim would occasionally fail to update vimdoc-ja. The error was “local changes”, and the only file involved was doc/tags-ja. The symptom The message that showed up at startup was the following. Copy Failed (1) ● vimdoc-ja 0.46ms start You have local changes in `~/.local/share/nvim/lazy/vimdoc-ja`: * doc/tags-ja Please remove them to update. You can also press `x` to remove the plugin and then `I` to install it again. It was not the plugin itself that was treated as a local change, only the generated helptags file. lazy.nvim refuses the update once it decides the git working tree is dirty. [Read More]
Categories: editor  Tags: neovim lua vimdoc-ja Vim