Skip to content
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

feat: use faster version of vim.validate if available #934

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

MariaSolOs
Copy link
Contributor

The form of vim.validate that takes a spec table as input was deprecated in neovim/neovim#30855 and plugins should now use the faster version introduced in neovim/neovim#28977.

This PR adds a new utility function to use the faster version if available. Also defined the existing utils.validate function to avoid confusion with the new utility function.

@MariaSolOs MariaSolOs force-pushed the master branch 2 times, most recently from 27c0949 to 413abd9 Compare October 27, 2024 03:02
@MariaSolOs
Copy link
Contributor Author

I think that the failing CI checks are because they're not using the updated vim.validate overloaded type.

Copy link
Owner

@lukas-reineke lukas-reineke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thank you

just some small notes to fix CI.

lua/ibl/utils.lua Outdated Show resolved Hide resolved
lua/ibl/utils.lua Show resolved Hide resolved
@MariaSolOs
Copy link
Contributor Author

just some small notes to fix CI.

Thanks for the hints! :)

I also want to say that I'm very impressed by your CI. I've contributed to quite a few plugins and this is a very complete testing suite!

@lukas-reineke lukas-reineke merged commit 04e44b0 into lukas-reineke:master Oct 29, 2024
8 checks passed
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.

2 participants