Update ycm postinstall hook to enforce python3 if possible
This commit is contained in:
parent
787b8088c4
commit
5def1345ff
1 changed files with 6 additions and 1 deletions
|
@ -13,7 +13,12 @@ endfunction
|
|||
call plug#begin($HOME.'/.nvim/plugged')
|
||||
|
||||
if s:uname == "Linux"
|
||||
" enforce python3 for distros like debian where python2 is the default
|
||||
if has('python3')
|
||||
Plug 'Valloric/YouCompleteMe', { 'do': 'python3 install.py --all' }
|
||||
else
|
||||
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --all' }
|
||||
endif
|
||||
else
|
||||
" OSX is terrible about everything nice
|
||||
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --gocode-completer --racer-completer --tern-completer' }
|
||||
|
|
Loading…
Reference in a new issue