aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/provider/pythonx.vim
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2019-01-01 12:04:41 -0500
committerJames McCoy <jamessan@jamessan.com>2019-01-01 14:15:31 -0500
commit0dd89cda9c4794b9ffa66c7d3fb870f8a0957761 (patch)
treed9360302490193816882cf0f56dacbb32df9964a /runtime/autoload/provider/pythonx.vim
parent57e0a578f027fed99c64c1f3c881e5f59e56a8d6 (diff)
downloadrneovim-0dd89cda9c4794b9ffa66c7d3fb870f8a0957761.tar.gz
rneovim-0dd89cda9c4794b9ffa66c7d3fb870f8a0957761.tar.bz2
rneovim-0dd89cda9c4794b9ffa66c7d3fb870f8a0957761.zip
{health,provider}/python: Import the neovim, rather than pynvim, module
The neovim module is available for backwards compatibility. We should not yet force the use of the pynvim module, since there's no other major reason to bump the minimum supported Python client module. Closes #9426
Diffstat (limited to 'runtime/autoload/provider/pythonx.vim')
-rw-r--r--runtime/autoload/provider/pythonx.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim
index b8e2ded00d..7ba21b03ad 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 pynvim; pynvim.start_host()']
+ let args = [prog, '-c', 'import sys; sys.path.remove(""); import neovim; neovim.start_host()']
" Collect registered Python plugins into args
let python_plugins = remote#host#PluginsForHost(a:host.name)
@@ -40,7 +40,7 @@ function! provider#pythonx#Detect(major_ver) abort
let errors = []
for prog in progs
- let [result, err] = provider#pythonx#CheckForModule(prog, 'pynvim', a:major_ver)
+ let [result, err] = provider#pythonx#CheckForModule(prog, 'neovim', a:major_ver)
if result
return [prog, err]
endif