mkNeovimPlugin: remove hasConfigAttrs#2619
mkNeovimPlugin: remove hasConfigAttrs#2619GaetanLepage wants to merge 3 commits intonix-community:mainfrom
Conversation
khaneliman
left a comment
There was a problem hiding this comment.
Makes sense to me, but would like @traxys and @MattSturgeon input.
|
For reference, it has been introduced in #1876. |
|
This makes rustaceanvim a very "strange" plugin, as you can specify things in I think we should either merge This also means that if we want to delete them we need to delete both of them. |
Rustaceanvim just uses the global options for its configuration, now. We just pass its settings along to our globals module https://github.com/mrcjkb/rustaceanvim?tab=readme-ov-file#gear-advanced-configuration |
|
To be consistent with the other plugins we should in some way handle the fact that rustaceanvim is inserted in the globals table. Maybe we should add the preSection just before the globals and the post section after? I'm not really sure what |
Yeah I see what you mean. I think that makes sense for a pre and post. But, I agree it's confusing for this type of plugin that basically configures like a vim plugin. |
I am not sure to follow there. What I mean is that I don't get why |
|
Do we need to handle |
|
I have pushed another commit that now assumes that Maybe we could argue for keeping those abstractions, but as it appears to me, they don't seem very useful at this time. |
|
I think that we should maybe not use mkNeovimPlugin for rustaceanvim, as it is a plugin that's too special. It required adding both hasConfigAttrs & configLocation |
Are you sure ? According to me, its behavior has not been affected by this PR. Maybe I'm missing something. |
|
You can search for other occurences of configLocation |
I did, and it was only present in |
|
(Summary of an offline discussion) |
I may be a bit late to the discussion and have missed some context, but the above quote seems to be conflating lua config and nix module config. To be explicit: One of the limitations of using the module system to configure Most of the time we avoid this issue, because Perhaps in the short term it is ok to simply say "anything using |
We are on the same page on the understanding of the current situation. |
Get rid of the
hasConfigAttrswhich doesn't seem necessary.Please, tell me if I missed the point and that it is (or will be) actually useful.