Skip to content

Does extraConfigLua override configuration set by plugins? #2830

Closed Answered by GaetanLepage
kohane27 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi !
Welcome abroad :)

The approach that Nixvim takes consists in letting you explicitly decide what goes in your config.
This means that, apart from specific exceptions, plugins.foo.enable = true will only

  • Install the plugin (i.e. add it to extraPlugins)
  • If necessary initialize it: require('foo').setup({})

If you do not explicitly set options, nixvim will not do anything more.
Then, you can pass any configuration option to the plugins.foo.settings attrs.
In the case of leap, as we have a proper module for it, I would encourage you to use it. However, not that it still uses our legacy implementation and does not provide the new flexible settings pattern.
Here is the documentation for it:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kohane27
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants