Skip to content

How to use dependencies correctly? #611

Answered by folke
VisionaryAppDev asked this question in Q&A
Discussion options

You must be logged in to vote

First of all, lua dependencies don't need to be explicitly set. So if a package uses lua modules from another plugin, you don't need to add those dependencies. That's being done automatically.

Cases where you do need to specify dependencies is where you need to make sure that certain plugin (the dependencies) are loaded before the parent plugin should load.

So in the case of cmp, you want to make sure that cmp-buffer etc is also loaded when cmp loads.

The other two examples, don't need those dependencies expleicitely set, but it also doesn't hurt.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by folke
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