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
—-@classLazyConfigM.defaults= {
patch= {
---@typestring | fun(plugin: LazyPlugin): string directory where you store your local plugin patchespath="~/projects/patches", — note: dev.pathdefaultis ~/projects
}
}
The text was updated successfully, but these errors were encountered:
This is not something I'm willing to add to lazy. Lazy currently requires the plugin's directory to be clean, so that checks for updates etc always work as expected.
It's also easy to just fork a repo and then use that in lazy. Just sync your fork every now and then with the original repo
Did you check the docs?
Is your feature request related to a problem? Please describe.
I use several plugins to which I have submitted PRs that I actively use but have not yet been merged (an example being codota/tabnine-nvim#70).
I would like to keep my editor version of this plugin up-to-date, without having to maintain a separate fork for a 30 line change.
Describe the solution you'd like
I’d like to have a way to apply user supplied
.patch
files which will be auto applied on update.my idea is to have a new
patch-dir
which is structured like thedev
directory . For example:essentially the process would be
patch-dir
, andpatch-dir/plugin-name
exists do:patch-dir/plugin-name
into a tablepatch
orgit apply
(user config?)build
command (we already do this) (after patching, since it may depend on the patch)Describe alternatives you've considered
an auto command on
LazyUpdate
which does the aboveLazyUpdatePre
and checking file modification datesA new auto command
LazyBuildPre
andLazyBuild
Additional context
I’m happy to begin to draft a PR, if you indicate that this is something you’d be willing to merge
should this be a key in LazySpec? like how we have
dir
which can override the global dev directory, we could havethe global config could look something like this:
The text was updated successfully, but these errors were encountered: