diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-03-16 09:36:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 09:36:26 +0100 |
commit | 33ada232c7566bd303579683dd5b769fe705462b (patch) | |
tree | c2ade760474b33749a2fca17acc04703986af2da /runtime/autoload/provider/pythonx.vim | |
parent | 5a8bf31d328ecdb79453bf1eb22ff10aabbe0422 (diff) | |
download | rneovim-33ada232c7566bd303579683dd5b769fe705462b.tar.gz rneovim-33ada232c7566bd303579683dd5b769fe705462b.tar.bz2 rneovim-33ada232c7566bd303579683dd5b769fe705462b.zip |
fix(checkhealth): make provider checkhealth output more consistent (#17722)
Change missing provider plugins from errors to warnings for python and
perl. Also give proper advice under the ADVICE section instead of just
the errors.
Diffstat (limited to 'runtime/autoload/provider/pythonx.vim')
-rw-r--r-- | runtime/autoload/provider/pythonx.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim index 5b299b322c..048f898e62 100644 --- a/runtime/autoload/provider/pythonx.vim +++ b/runtime/autoload/provider/pythonx.vim @@ -56,7 +56,7 @@ function! provider#pythonx#DetectByModule(module, major_version) abort endfor " No suitable Python executable found. - return ['', 'provider/pythonx: Could not load Python '.a:major_version.":\n".join(errors, "\n")] + return ['', 'Could not load Python '.a:major_version.":\n".join(errors, "\n")] endfunction " Returns array: [prog_exitcode, prog_version] @@ -99,7 +99,7 @@ function! provider#pythonx#CheckForModule(prog, module, major_version) abort endif if prog_exitcode == 2 - return [0, prog_path.' does not have the "' . a:module . '" module. :help provider-python'] + return [0, prog_path.' does not have the "' . a:module . '" module.'] elseif prog_exitcode == 127 " This can happen with pyenv's shims. return [0, prog_path . ' does not exist: ' . prog_version] |