-
Notifications
You must be signed in to change notification settings - Fork 32
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
avoid deprecated health api #94
Conversation
Please ignore CI. The actions used by the CI workflow are too old and it is not related to changes of this PR. |
autoload/health/gitmessenger.vim
Outdated
@@ -1,8 +1,8 @@ | |||
function! s:check_job() abort | |||
if !has('nvim') && !has('job') | |||
call health#report_error('Not supported since +job feature is not enabled') | |||
call v:lua.vim.health.error('Not supported since +job feature is not enabled') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is not reached by Neovim. So this modification is not needed.
autoload/health/gitmessenger.vim
Outdated
@@ -63,13 +63,13 @@ function! s:check_vim_version() abort | |||
endif | |||
|
|||
if v:version < 800 | |||
call health#report_error( | |||
call v:lua.vim.health.error( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
autoload/health/gitmessenger.vim
Outdated
\ 'Your Vim version is too old: ' . v:version, | ||
\ 'Please install Vim 8.0 or later') | ||
return | ||
endif | ||
|
||
call health#report_ok('Vim version is fine: ' . v:version) | ||
call v:lua.vim.health.ok('Vim version is fine: ' . v:version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
I've fixed CI. Please rebase this branch onto the latest master branch so that tests can be run properly. |
Nice, thanks. |
Sorry for the delay, I hope this is fine now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem. Thank you for catching this. Merging.
This PR fixes #93: Deprecated (since neovim 0.10)
health#report_*
calls got replaced withv:lua.vim.health.*
calls.Tested in neovim 0.11.