neovim: Set up python3 virtualenv in postinstall
This commit is contained in:
parent
56f6c13001
commit
08a6aa3b33
3 changed files with 4 additions and 8 deletions
|
|
@ -4,7 +4,7 @@ endif
|
||||||
|
|
||||||
let &shell = '/bin/sh'
|
let &shell = '/bin/sh'
|
||||||
let g:python3_host_prog = expand('~/.virtualenvs/neovim3/bin/python')
|
let g:python3_host_prog = expand('~/.virtualenvs/neovim3/bin/python')
|
||||||
let g:python_host_prog = expand('~/.virtualenvs/neovim2/bin/python')
|
let g:loaded_python_provider = 0 " Disable python2 support for plugins
|
||||||
|
|
||||||
call plug#begin('~/.local/share/nvim/plugged')
|
call plug#begin('~/.local/share/nvim/plugged')
|
||||||
if filereadable(expand("~/.config/nvim/os-plugins.vim"))
|
if filereadable(expand("~/.config/nvim/os-plugins.vim"))
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
set -x
|
||||||
|
|
||||||
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
[ -d ~/.virtualenvs/neovim3 ] || python3 -m venv ~/.virtualenvs/neovim3
|
||||||
|
~/.virtualenvs/neovim3/bin/python -c 'import neovim' || ~/.virtualenvs/neovim3/bin/pip install neovim
|
||||||
|
|
||||||
# https://github.com/junegunn/vim-plug/wiki/tips#install-plugins-on-the-command-line
|
# https://github.com/junegunn/vim-plug/wiki/tips#install-plugins-on-the-command-line
|
||||||
nvim -es -u ~/.config/nvim/init.vim -i NONE -c "PlugInstall" -c "qa"
|
nvim -es -u ~/.config/nvim/init.vim -i NONE -c "PlugInstall" -c "qa"
|
||||||
|
|
|
||||||
6
notes
6
notes
|
|
@ -1,6 +0,0 @@
|
||||||
Configs that support having a local untracked import:
|
|
||||||
* polybar
|
|
||||||
* qutebrowser
|
|
||||||
|
|
||||||
Post-install things:
|
|
||||||
* Create neovim2 and neovim3 virtualenvs
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue