Handle virtualenv python without installing neovim package in every venv

This commit is contained in:
Alexander Gehrke 2019-05-09 11:17:12 +02:00
parent ce27ba70e4
commit ccf4ae7197

View file

@ -1,3 +1,9 @@
if exists("$VIRTUAL_ENV")
let g:python3_host_prog=substitute(system("which -a python3 | head -n2 | tail -n1"), "\n", '', 'g')
else
let g:python3_host_prog=substitute(system("which python3"), "\n", '', 'g')
endif
runtime packages.vim runtime packages.vim
let $MYVIMDIR=split(&rtp, ',')[0] let $MYVIMDIR=split(&rtp, ',')[0]