Fix the deoplete detection for neovim

This commit is contained in:
Kevin MacMartin 2018-03-15 13:55:29 -04:00
parent a9e33d5f66
commit 885ff7177f

4
vimrc
View file

@ -40,10 +40,12 @@
"configure pythonx and the python_neovim variable to determine whether deoplete should be loaded
if has('python3')
if !has('nvim')
set pyxversion=3
endif
redir => python_neovim_check
silent pythonx exec("import pkgutil\nneovim = pkgutil.find_loader('neovim')\nfound = neovim is not None\nprint(found)")
silent python3 exec("import pkgutil\nneovim = pkgutil.find_loader('neovim')\nfound = neovim is not None\nprint(found)")
redir END
if substitute(python_neovim_check, '^\n*\([^\n]*\)\n*$', '\1', '') == 'True'