mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 06:44:09 -05:00
Fix the deoplete detection for neovim
This commit is contained in:
parent
a9e33d5f66
commit
885ff7177f
1 changed files with 4 additions and 2 deletions
4
vimrc
4
vimrc
|
@ -40,10 +40,12 @@
|
||||||
|
|
||||||
"configure pythonx and the python_neovim variable to determine whether deoplete should be loaded
|
"configure pythonx and the python_neovim variable to determine whether deoplete should be loaded
|
||||||
if has('python3')
|
if has('python3')
|
||||||
|
if !has('nvim')
|
||||||
set pyxversion=3
|
set pyxversion=3
|
||||||
|
endif
|
||||||
|
|
||||||
redir => python_neovim_check
|
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
|
redir END
|
||||||
|
|
||||||
if substitute(python_neovim_check, '^\n*\([^\n]*\)\n*$', '\1', '') == 'True'
|
if substitute(python_neovim_check, '^\n*\([^\n]*\)\n*$', '\1', '') == 'True'
|
||||||
|
|
Loading…
Reference in a new issue