-
Notifications
You must be signed in to change notification settings - Fork 381
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
Initial packspec support #910
Conversation
67c0acc
to
058b135
Compare
Probably can switch to just |
@justinmk updated! |
what does this mean concretely? installing in system $PATH, or...? (I can't find "env dep" in lazy's readme or code) |
@justinmk you won't find that in the code, since I just made up those terms, which are admittedly not that great. It's more related to Neovim's With A runtime dep, is where a plugin needs another plugin to be an With lazy, lua dependencies are resolved automatically, meaning that if a plugin depends on a module of a plugin that has not been loaded yet, then that other plugin will be automatically loaded. The dependencies in the packspec are currently converted to those If a plugin also needs the plugin to be loaded when it loads, and in a way that is not covered by the auto-loading, they can specify that with lazy's existing spec syntax in the custom |
c074564
to
30072a0
Compare
Closing in favor of #1530 |
Initial support for
pkg.json
andlazy.lua
files part of a plugin repo.Goals:
lazy
lazy
can contain any valid lazy spec fields. They will be added to the plugin's spec.lazy.lua
for more advanced use-cases. This file should return a lazy speccustom.lazy
field is not sufficient for your use-case.There are two types of dependencies in lazy:
"*"
or""
, the dependency is for the latestHEAD
.*
explicitly selects the latest stable version.version
supports the npm semver range syntax, except for the combined rangesOn
install
orupdate
, lazy combines allpackage.lua
in a single cached file for better performance.Commands
:Lazy pkg
: reloads allpkg.json
files. This is useful when developing a packspec for a plugin:Lazy pkg plugin_name(s)
: additionally shows the resolved lazy spec based on the plugin's packspec