mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 03:34:10 -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
6
vimrc
6
vimrc
|
@ -40,10 +40,12 @@
|
|||
|
||||
"configure pythonx and the python_neovim variable to determine whether deoplete should be loaded
|
||||
if has('python3')
|
||||
set pyxversion=3
|
||||
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'
|
||||
|
|
Loading…
Reference in a new issue