diff options
author | Marco Hinz <mh.codebro+github@gmail.com> | 2018-11-18 14:29:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-18 14:29:15 +0100 |
commit | 180b50dddc26d18ccedd0dfae39e3dfe8b71a338 (patch) | |
tree | 56229c5be3d8cb937f5cbdb3f972f9b905bd744b /runtime/autoload/provider/pythonx.vim | |
parent | 00e3ba22fe8c36cd53aa1b398d09b0af1fcbbcb0 (diff) | |
parent | 0c2ca48e5f27ed2dc2cecceffaa83976ee7e9e3e (diff) | |
download | rneovim-180b50dddc26d18ccedd0dfae39e3dfe8b71a338.tar.gz rneovim-180b50dddc26d18ccedd0dfae39e3dfe8b71a338.tar.bz2 rneovim-180b50dddc26d18ccedd0dfae39e3dfe8b71a338.zip |
Merge #9248 from mhinz/checkhealth/python
Rename Python package "neovim" to "pynvim"
Diffstat (limited to 'runtime/autoload/provider/pythonx.vim')
-rw-r--r-- | runtime/autoload/provider/pythonx.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim index b51c398410..189159ab9e 100644 --- a/runtime/autoload/provider/pythonx.vim +++ b/runtime/autoload/provider/pythonx.vim @@ -10,7 +10,7 @@ function! provider#pythonx#Require(host) abort " Python host arguments let prog = (ver == '2' ? provider#python#Prog() : provider#python3#Prog()) - let args = [prog, '-c', 'import sys; sys.path.remove(""); import neovim; neovim.start_host()'] + let args = [prog, '-c', 'import sys; sys.path.remove(""); import pynvim; pynvim.start_host()'] " Collect registered Python plugins into args let python_plugins = remote#host#PluginsForHost(a:host.name) @@ -62,17 +62,17 @@ function! s:check_interpreter(prog, major_ver) abort let min_version = (a:major_ver == 2) ? '2.6' : '3.3' - " Try to load neovim module, and output Python version. + " Try to load pynvim module, and output Python version. " Return codes: - " 0 Neovim module can be loaded. - " 2 Neovim module cannot be loaded. + " 0 pynvim module can be loaded. + " 2 pynvim module cannot be loaded. " Otherwise something else went wrong (e.g. 1 or 127). let prog_ver = system([ a:prog , '-c' , \ 'import sys; ' . \ 'sys.path.remove(""); ' . \ 'sys.stdout.write(str(sys.version_info[0]) + "." + str(sys.version_info[1])); ' . \ 'import pkgutil; ' . - \ 'exit(2*int(pkgutil.get_loader("neovim") is None))' + \ 'exit(2*int(pkgutil.get_loader("pynvim") is None))' \ ]) if v:shell_error == 2 || v:shell_error == 0 @@ -87,7 +87,7 @@ function! s:check_interpreter(prog, major_ver) abort endif if v:shell_error == 2 - return [0, prog_path.' does not have the "neovim" module. :help provider-python'] + return [0, prog_path.' does not have the "pynvim" module. :help provider-python'] elseif v:shell_error == 127 " This can happen with pyenv's shims. return [0, prog_path . ' does not exist: ' . prog_ver] |