[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'
|
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
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Disable Perl
|
||||||
|
let g:loaded_perl_provider = 0
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
" Warn about plugin updates
|
" Warn about plugin updates
|
||||||
@@ -279,7 +283,7 @@ if has("macunix")
|
|||||||
" Required for virtualenvs
|
" Required for virtualenvs
|
||||||
let arch=substitute(system('uname -m'), '\n', '', '')
|
let arch=substitute(system('uname -m'), '\n', '', '')
|
||||||
if arch == 'arm64'
|
if arch == 'arm64'
|
||||||
let g:python3_host_prog="/opt/homebrew/bin/python3"
|
let g:python3_host_prog="~/python-envs/neovim/bin/python3"
|
||||||
else
|
else
|
||||||
let g:python3_host_prog="/usr/local/bin/python3"
|
let g:python3_host_prog="/usr/local/bin/python3"
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -6,8 +6,11 @@
|
|||||||
# Distributed under terms of the MIT license.
|
# Distributed under terms of the MIT license.
|
||||||
#
|
#
|
||||||
|
|
||||||
brew install neovim tmux alacritty coreutils cmake golang npm
|
brew install neovim tmux alacritty coreutils cmake golang npm virtualenvwrapper
|
||||||
pip3 install neovim
|
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'\
|
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.
|
to the path. This will require your root password.
|
||||||
sudo launchctl config user path /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
|
sudo launchctl config user path /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user