[nvim] Add neovim virtualenv
This commit is contained in:
@@ -9,6 +9,10 @@ if empty(glob(data_dir . '/autoload/plug.vim'))
|
||||
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
|
||||
" Disable Perl
|
||||
let g:loaded_perl_provider = 0
|
||||
|
||||
call plug#begin()
|
||||
|
||||
" Warn about plugin updates
|
||||
@@ -279,7 +283,7 @@ if has("macunix")
|
||||
" Required for virtualenvs
|
||||
let arch=substitute(system('uname -m'), '\n', '', '')
|
||||
if arch == 'arm64'
|
||||
let g:python3_host_prog="/opt/homebrew/bin/python3"
|
||||
let g:python3_host_prog="~/python-envs/neovim/bin/python3"
|
||||
else
|
||||
let g:python3_host_prog="/usr/local/bin/python3"
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user