aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2018-11-18 21:38:34 +0100
committerMarco Hinz <mh.codebro@gmail.com>2018-11-20 09:59:18 +0100
commit57fef7c74dca1059e45ec9c061555f22af8973cf (patch)
tree1d809d80853a4346a168517ce244096c4907cb08
parent443cd04d5b00c57d791681065b2016cbe4228044 (diff)
downloadrneovim-57fef7c74dca1059e45ec9c061555f22af8973cf.tar.gz
rneovim-57fef7c74dca1059e45ec9c061555f22af8973cf.tar.bz2
rneovim-57fef7c74dca1059e45ec9c061555f22af8973cf.zip
health/python: slightly improve output
-rw-r--r--runtime/autoload/health/provider.vim14
1 files changed, 6 insertions, 8 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim
index a99b600aba..d4e4badb91 100644
--- a/runtime/autoload/health/provider.vim
+++ b/runtime/autoload/health/provider.vim
@@ -410,16 +410,16 @@ function! s:check_python(version) abort
call health#report_warn('Python 3.3+ is recommended.')
endif
- call health#report_info('Python'.a:version.' version: ' . pyversion)
+ call health#report_info('Python version: ' . pyversion)
if s:is_bad_response(status)
- call health#report_info(printf('%s-neovim version: %s (%s)', pyname, current, status))
+ call health#report_info(printf('pynvim version: %s (%s)', current, status))
else
- call health#report_info(printf('%s-neovim version: %s', pyname, current))
+ call health#report_info(printf('pynvim version: %s', current))
endif
if s:is_bad_response(current)
call health#report_error(
- \ "Neovim Python client is not installed.\nError: ".current,
+ \ "pynvim is not installed.\nError: ".current,
\ ['Run in shell: pip' . a:version . ' install pynvim'])
endif
@@ -427,11 +427,9 @@ function! s:check_python(version) abort
call health#report_warn('Could not contact PyPI to get latest version.')
call health#report_error('HTTP request failed: '.latest)
elseif s:is_bad_response(status)
- call health#report_warn(printf('Latest %s-neovim is NOT installed: %s',
- \ pyname, latest))
+ call health#report_warn(printf('Latest pynvim is NOT installed: %s', latest))
elseif !s:is_bad_response(current)
- call health#report_ok(printf('Latest %s-neovim is installed: %s',
- \ pyname, latest))
+ call health#report_ok(printf('Latest pynvim is installed.'))
endif
endif