[mini.deps] Create snapshot after update? #2221
-
Contributing guidelines
Module(s)mini.deps QuestionHas anyone figured out how to create a mini.deps snapshot after writing the update file? function P.update_save()
require("mini.deps").update()
require("mini.deps").snap_save()
endThis will create one before I write the update file I think so it won't snapshot the update? Also is there a way to minimize the amount of text generated for the dependencies that don't need updating? Lazy's UI/UX is slightly more tight/refined in both these cases. A single line is plenty for a no_op and not being able to generate a snapshot automatically means people are more likely to not create them. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Snapshots is deliberately designed to be a manual action in 'mini.deps'. This is something that I think could have indeed be handled better if done automatically, but that is not a snapshot then :) That's why the For a fully automated "update and save" it is possible to
I am afraid, no. All this text is present for an easier possible navigation to the plugin (with |
Beta Was this translation helpful? Give feedback.
Snapshots is deliberately designed to be a manual action in 'mini.deps'. This is something that I think could have indeed be handled better if done automatically, but that is not a snapshot then :) That's why the
vim.pack(Neovim's built-in plugin manager that is based on 'mini.deps' and is already part of Neovim 0.12 development branch) has the concept of lockfile which will be updated automatically after every relevant change.For a fully automated "update and save" it is possible to
MiniDeps.update(nil, { force = true }).I am afraid, no. All this text is present for an easier …