-
I really like snacks but if I configure each of the snacks in a single snacks.lua file, the file would be extremely long. I would prefer to have a setup like: This way the config for each snack can be maintained separately which IMO is much cleaner. I also have the added benefit of enable/disable snacks for testing purposes. I searched the docs but couldn't find any way to set this up using lazy as the package manager. If anyone reading this has successfully set up this type of structure, would you kindly provide a link to your config OR some guidance? I already tried separate files but since the source for all the snacks is the same, lazy doesn't treat them as separate and it failed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
lazy specs are always merged, so you can have multipple snacks specs in multiple files. |
Beta Was this translation helpful? Give feedback.
lazy specs are always merged, so you can have multipple snacks specs in multiple files.
Same as for any plugin.
You can olnly have one
config
function though, so don't use that and just useopts