"Opts" Table Pass #3428
Unanswered
suasuasuasuasua
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently learned that you can use both
opts
andconfig
with lazy.nvim (see post).opts
is passed as an argument to theconfig
function ifopts
andconfig
are set. Otherwise,opts
is automatically passed as an argument to the plugin's setup function.It seems like we do a similar thing with
lz-n
when lazy loading (see docs).Is it possible to access that "setup code" (the table) in a function given to
after
? I'm not sure if that's documented anywhere, and I'm not at my main computer where I can test it.For example,
Or does it make more sense to do something like
luaConfig.post
?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions