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

fix: remove validation from configs.lua #3584

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

dundargoc
Copy link
Member

This is because using the old syntax for vim.validate causes
:checkhealth vim.deprecated to be flooded with deprecated messages.

It would also be possible to do a version check and use the newer syntax
for vim.validate, but since configs.lua will be replaced by
vim.lsp.config in the future there is little need to future-proof it.

Closes #3583.

@dundargoc
Copy link
Member Author

I suppose we could keep the old syntax for the validation and do a reverse version check, aka only validate if neovim is less than v0.11 but don't know how much we'd gain from that.

@dundargoc dundargoc marked this pull request as ready for review January 23, 2025 11:57
@dundargoc dundargoc requested a review from glepnir as a code owner January 23, 2025 11:57
lua/lspconfig/configs.lua Outdated Show resolved Hide resolved
This is because using the old syntax for vim.validate causes
`:checkhealth vim.deprecated` to be flooded with deprecated messages.

It would also be possible to do a version check and use the newer syntax
for vim.validate, but since configs.lua will be replaced by
vim.lsp.config in the future there is little need to future-proof it.

Closes neovim#3583.
@dundargoc dundargoc merged commit b4d65bc into neovim:master Jan 23, 2025
11 checks passed
@dundargoc dundargoc deleted the fix/vim.validate branch January 23, 2025 18:07
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.

vim.validate is deprecated. Feature will be removed in Nvim 1.0
2 participants