Skip to content

Add type hints to plugin options where possible#1494

Merged
oriori1703 merged 1 commit intonvim-lua:masterfrom
oriori1703:feature/type-hints
Feb 27, 2026
Merged

Add type hints to plugin options where possible#1494
oriori1703 merged 1 commit intonvim-lua:masterfrom
oriori1703:feature/type-hints

Conversation

@oriori1703
Copy link
Collaborator

This could help beginners to get autocompletion, catch mistakes earlier, and allow them to skip the docs for simple configs.

This is not perfect because a lot of the plugins type all of their keys as required, even though they have defaults, but this is good enough.

BTW, I'm quite new to lua, so let me know if there is a better way to do it, especially the missing-fields part

This could help beginners to get autocompletion, catch mistakes earlier,
and allow them to skip the docs for simple configs.

This is not perfect because a lot of the plugins type all of their keys
as required, even though they have defaults, but this is good enough.
@oriori1703 oriori1703 merged commit afc734f into nvim-lua:master Feb 27, 2026
1 check passed
@oriori1703 oriori1703 deleted the feature/type-hints branch February 28, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant