[nvim] Add neovim virtualenv

This commit is contained in:
Fabian Ising
2024-02-28 11:47:29 +01:00
parent 3673889d55
commit c421b2be7f
2 changed files with 10 additions and 3 deletions

View File

@@ -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