Title here
Summary here
cd ~/.config/nvim
git diff
git log --oneline -10If it worked yesterday and not today, the diff is the bug.
git checkout -- lua/plugins/lsp.lua # one file
git stash # everything, keep it for later
git checkout <commit> # the whole config, as it was:Lazy restorerestores every plugin to the commits in lazy-lock.json. Combined with git checkout lazy-lock.json, that returns you to a known-good editor even when the breakage came from someone else’s update.
This is why putting the config in git matters more than any single plugin.