Skip to content
Discussion options

You must be logged in to vote

Assuming you are using lze for lazy loading, you would set dep_of to load before the load hook, of the other spec, which by default is what calls packadd, loading the plugin.

dep_of will load the spec it is on after that other plugins before hook and before its load hook.

There is also on_plugin to load after the load hook but before the after hook.

So in the telescope spec you would put dep_of = { "theotherone" }

If the other thing does indeed require telescope however, instead of dep_of you could put on_require = "telescope" and lze will load the spec in which that is set whenever some submodule of telescope is required and fails to load (via a custom package.loaders entry it adds at s…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BirdeeHub
Comment options

@redbeardymcgee
Comment options

@BirdeeHub
Comment options

Answer selected by redbeardymcgee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants