Replies: 2 comments 12 replies
-
I may have misunderstood something but you can have multiple |
Beta Was this translation helpful? Give feedback.
10 replies
-
@jdsee has your question found a satisfying answer ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi 👋 first of all, thanks for all the work on this cool project!
When trying to port my Lua config to Nixvim I stumbled over a couple of things. Adding extra Lua Code for specific plugins bothered me the most.
In my Lua config I like to have one file per plugin and try to contain everything related in that one file. I see the following advantages in that approach:
I tried to replicate this style with Nixvim (one module per plugin) but struggled with custom Lua code for specific plugins. I would like to avoid squeezing all the plugin specific code in
extraConfigLua
for the previously stated reasons.Personally I would really like, if every plugin had
extraConfigLua
as a default key. That Lua code should then only be included if the plugin is enabled. The same approach would be really helpful forextraPlugins
since those don't have any options declared.Another fortunate side effect would be the simplification of the (potentially) upcoming lazy loading. If I'm not mistaken currently it would lead to problems if a lazily loaded plugin was
require
d fromextraConfigLua
.So I'm wondering, if others can relate to this issue or if I'm just missing out on something. Anyone an opinion on this?
Beta Was this translation helpful? Give feedback.
All reactions