Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add type hints to plugin options where possible#1494

Open
oriori1703 wants to merge 1 commit intonvim-lua:master from
oriori1703:feature/type-hints
Open

Add type hints to plugin options where possible #1494
oriori1703 wants to merge 1 commit intonvim-lua:master from
oriori1703:feature/type-hints

Conversation

@oriori1703
Copy link
Contributor

@oriori1703 oriori1703 commented Apr 26, 2025

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

metalinspired and tyler-dot-earth reacted with thumbs up emoji
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /