[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

View File

@@ -6,8 +6,11 @@
# Distributed under terms of the MIT license.
#
brew install neovim tmux alacritty coreutils cmake golang npm
pip3 install neovim
brew install neovim tmux alacritty coreutils cmake golang npm virtualenvwrapper
source /opt/homebrew/bin/virtualenvwrapper.sh
mkvirtualenv neovim
pip3 install pynvim
npm install -g neovim
echo For alacritty to work seemlessly with tmux, we will have to add '/usr/local/bin'\
to the path. This will require your root password.
sudo launchctl config user path /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin