You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Hi folke, thanks for your work on this plugin!
I'm aware of the existence of dev and dir=... options that can be used to manage local plugins, but in sometimes I just want to apply a few small changes to the plugin before my changes get merged to the upstream, where I prefer to use git patches to change the plugins locally without having to change the repo url in the plugins specs.
but when I upgrade the plugin, because of the existence of the local changes, git checkout will fail.
I wonder if lazy.nvim can provide an option in the plugin spec called patch that accepts a string as the path to the patch.
If patch is specified, lazy.nvim should
apply the patch before running build
on updating, revert the patch first, then update and plugin and tries to reapply the patch
lazy.nvim should throw error if the patch cannot be applies to the new version of the plugin, else update the plugin normally
Describe the solution you'd like
lazy.nvim can provide an option in the plugin spec called patch that accepts a string (as the path to the patch) or a function (that can be used to apply the patch).
If patch is specified, lazy.nvim should
apply the patch before running build
on updating, revert the patch first, then update and plugin and tries to reapply the patch
lazy.nvim should throw error if the patch cannot be applies to the new version of the plugin, else update the plugin normally
Describe alternatives you've considered
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered:
Can we instead add some new user events such as LazySyncPre or LazyUpdatePre besides LazySync, LazyUpdate, etc so that users can take advantage of these events to achieve what is described above?
Did you check the docs?
Is your feature request related to a problem? Please describe.
Hi folke, thanks for your work on this plugin!
I'm aware of the existence of
dev
anddir=...
options that can be used to manage local plugins, but in sometimes I just want to apply a few small changes to the plugin before my changes get merged to the upstream, where I prefer to use git patches to change the plugins locally without having to change the repo url in the plugins specs.Currently I use the
build
option to do this:but when I upgrade the plugin, because of the existence of the local changes,
git checkout
will fail.I wonder if
lazy.nvim
can provide an option in the plugin spec calledpatch
that accepts a string as the path to the patch.If
patch
is specified,lazy.nvim
shouldbuild
lazy.nvim
should throw error if the patch cannot be applies to the new version of the plugin, else update the plugin normallyDescribe the solution you'd like
lazy.nvim
can provide an option in the plugin spec calledpatch
that accepts a string (as the path to the patch) or a function (that can be used to apply the patch).If
patch
is specified,lazy.nvim
shouldbuild
lazy.nvim
should throw error if the patch cannot be applies to the new version of the plugin, else update the plugin normallyDescribe alternatives you've considered
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: