Skip to content

"Opts" Table Pass #3428

Closed Answered by MattSturgeon
suasuasuasuasua asked this question in Q&A
Jun 3, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

By default, nixvim's plugins will put their luaConfig into lz-n's after (when lazyloading).

So if you want to use Nixvim's plugin settings, you should put your "after" code in plugins.*.luaConfig.

So:

Or does it make more sense to do something like luaConfig.post?

is correct.


If you define plugins.*.lazyload.settings.after explicitly for this plugin, then that overrides everything nixvim would've done. This effectively means your plugins.*.settings is ignored, and if you wanted to use it you'd have to use toLuaObject on it yourself.

See

after =
let
after = cfg.lazyLoad.settings.after or null;
d…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@GaetanLepage
Comment options

@suasuasuasuasua
Comment options

@GaetanLepage
Comment options

Answer selected by suasuasuasuasua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants