Skip to content

docs: clarify using opts = {} vs config = function() ... require('plu…#1316

Merged
feoh merged 3 commits into
nvim-lua:masterfrom
bleacheda:bleacheda-clarify-docs
Feb 15, 2025
Merged

docs: clarify using opts = {} vs config = function() ... require('plu…#1316
feoh merged 3 commits into
nvim-lua:masterfrom
bleacheda:bleacheda-clarify-docs

Conversation

@bleacheda

Copy link
Copy Markdown
Contributor

The current documentation mentioning that using "require" is equivalent to using "opts" without detailing the use in the "config = function()" block seems inaccurate.

Lower in the configuration the "config = function()" block is used without clarifying why it is needed and what it does.

This clarification may help new users understand the difference between the two, or how and where to place the "require" statement in order for it to be equivalent to using "opts".

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants