When opts
is defined, and there is also a config
function, opts
is ignored?
#1474
Unanswered
willhansen
asked this question in
Q&A
Replies: 1 comment
-
You should define the signature like config = function(_, opts)
require("plugin_name").setup(opts)
whatever_else_you_like
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had kind of assumed that it would call setup with opts first, then the config function, but it turned out it was just ignoring my options, and not giving any warning at all.
Is this the expected behavior?
Beta Was this translation helpful? Give feedback.
All reactions