[General question] What is the intended configuration when using rocks.nvim as a package manager #139
-
So, let's use just one plugin as an example. I just published 2048.nvim to luarocks. I installed it with Note: I read the
[config]
plugins_dir = "plugins/" do the same thing as I mentioned above (the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey 👋 With rocks.nvim, there is no "intended way" of configuring plugins. So as a plugin manager, rocks.nvim leaves configuration up to the user, or an external module like rocks-config.nvim. The If you don't use rocks-config.nvim, there are many different ways you can configure your plugins.
Footnotes
|
Beta Was this translation helpful? Give feedback.
-
I know the questions were very basic, but the answers helped a lot. Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Hey 👋
With rocks.nvim, there is no "intended way" of configuring plugins.
We follow the UNIX philosophy: "Do one thing and do it well".
So as a plugin manager, rocks.nvim leaves configuration up to the user, or an external module like rocks-config.nvim.
If you're using rocks-config.nvim, it woks as you describe, and you don't have to manually source the plugins.
The module will look at your
rocks.toml
and search for modules in yourconfig.plugins_dir
, based on the names of the respective plugins.If you have a config in your
plugins_dir
, but the plugin isn't installed, rocks-config.nvim won't try to source it.The
auto_setup
option exists as a workaround for the fact that many Lua plugins…