How to use dependencies correctly? #611
-
I am quite confuse with the From readme, I suppose to add the main package first and then add the package that depend on the main package as a dependencies.
As from the readme, I need to change the word
It's quite confusing for me. So, please kindly explain how should I config it correctly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 The other two examples, don't need those dependencies expleicitely set, but it also doesn't hurt. |
Beta Was this translation helpful? Give feedback.
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.