Skip to content

Add type hints to plugin options where possible #1494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oriori1703
Copy link
Contributor

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 force-pushed the feature/type-hints branch from 64912ff to dc97770 Compare May 11, 2025 06:04
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.

1 participant