You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the above, but it seems that lazyvim.plugins will not get passed those options. And also, lazyvim/init.lua will be activated AFTER lazyvim/plugins/init.lua
i even tried setting a global variable and that also didn't work
Is this possible to accomplish?
I am currently solving this issue by creating a function in my meta-plugin and using it e.g. like so
require("my-meta-plugin").setup({ some=options })
And have the above evaluate to a LazySpec[], then I just place it with my other plugins
but this is not ideal because Lazy.nvim does not track or recognize my "meta" plugin.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to create a meta-plugin which takes in options and configures other plugins.
For example, in LazyVim starter you use:
But what If I wanted to pass in some options e.g. like this:
I tried the above, but it seems that
lazyvim.plugins
will not get passed those options. And also,lazyvim/init.lua
will be activated AFTERlazyvim/plugins/init.lua
i even tried setting a global variable and that also didn't work
Is this possible to accomplish?
I am currently solving this issue by creating a function in my meta-plugin and using it e.g. like so
And have the above evaluate to a
LazySpec[]
, then I just place it with my other pluginsbut this is not ideal because Lazy.nvim does not track or recognize my "meta" plugin.
Is there a better approach for this?
Beta Was this translation helpful? Give feedback.
All reactions