-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature suggestion: locally back-up lockfile automatically upon Lazy sync #234
Comments
I'm not planning to add something like this, however, what i am planning to add is that you can press r on a commit hash from lazy log to restore a plugin to that specific revision. Would that at least partially solve your issue of quickly reverting to a previous commit? |
Damn, why would your post get removed? That doesn't make sense. One of the mods must not like lazy 😉 |
Sounds like a clean alternative to my idea! I'm not sure, maybe this could be a bit unwieldy if a plugin breakage a) actually keeps nvim from starting correctly (maybe? I think lazy.nvim always starts first anyways?) or (b) would be caused by intertwining plugins. In the
No clue, my post was actually quite elaborate 😅 Anyways, I think we can close this as the original "issue" will as I understand be addressed eventually. E: And of course thank you for a nice and simple plugin manager without headaches :) |
I'll keep it open for now so I don't forget adding that functionality 😅 Lazy should not really break on failing plugins or incorrect specs. You'd just see a fancy error about what plugin broke and what it did. |
You can now use |
Did you check the docs?
Is your feature request related to a problem? Please describe.
The lockfile is recommended to be synced with dotfiles on git. Of course, this is desired behavior, but not every user syncs their dots on git and, if so, syncs them often enough (like myself.. ;).
Consequently, a user might
:Lazy sync
and break something without being able to:Lazy restore
as the lockfile has been overwritten.Apologies in case I missed something obvious.
Describe the solution you'd like
Automatically back-up lockfiles to desired folder upon opt-in:
Define
Describe alternatives you've considered
My simple implementation (to be polished if desirable for lazy.nvim)
I very well understand if this should not land in
lazy.nvim
; I actually without success tried just sharing it on the neovim subreddit, but despite successfully posting before (e.g. abouttelescope-file-browser.nvim
I maintain), my posts almost immediately get removed 🤷♂️So sharing it here for your consideration.
Additional context
Happy to polish this as a PR if feature is desirable.
The text was updated successfully, but these errors were encountered: