Skip to content

lib/plugins: add optional setup plumbing; add public callSetup override#4258

Open
khaneliman wants to merge 5 commits intonix-community:mainfrom
khaneliman:setup-optional
Open

lib/plugins: add optional setup plumbing; add public callSetup override#4258
khaneliman wants to merge 5 commits intonix-community:mainfrom
khaneliman:setup-optional

Conversation

@khaneliman
Copy link
Copy Markdown
Contributor

Closes #3959

Adding the optional callSetup functionality to allow us to respect modern neovim plugin direction of migrating away from explicit setup calls. Added an internal mechanism that we can use on plugins we know support it, while giving a public api option to allow a user to override the setup call themself.

Have a fixup commit related to the discussion about whether we should be over protective or allow advanced usage.

Expose a user-facing callSetup option for mkNeovimPlugin users while keeping plugin defaults internal. Preserve optional setup semantics, document the override, and cover the new behavior with unit and failure tests.
@khaneliman khaneliman requested a review from a team April 22, 2026 12:58
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.

[Feature] option to disable calling setup

1 participant