fix: Fix healthcheck using deprecated functions #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This fixes
:checkhealth
from showing deprecation warnings in 0.10.0+.In neovim 0.10, the
vim.health.report_*
functions were deprecated. It is recommended to use the new functions which use the same name without thereport_
prefix (i.e.vim.health.start
,vim.health.ok
, etc). The deprecated functions will be removed in 0.11.Testing
I just set up a minimal config that loads my local version of the plugin. Then I used
bob
to switch between versions to test from 0.7 to 0.10This is what the current
main
branch shows on 0.10.0 before any fixes. There are also additional warnings and stack traces in:messages
.I then tested the changes on 0.10.0, 0.9.0, 0.8.0, and 0.7.2 (that's the first release with a mac binary that supports ARM) since the project's readme mentions working on version >= 0.7. There are no more deprecation warnings and no more warnings in
:messages