1
0
Fork 0

neovim: Source init.vim to use headless PlugInstall

This commit is contained in:
Jeremy Kaplan 2021-05-21 18:24:48 -07:00
commit 56f6c13001
3 changed files with 2 additions and 6 deletions

View file

@ -6,7 +6,6 @@ let &shell = '/bin/sh'
let g:python3_host_prog = expand('~/.virtualenvs/neovim3/bin/python')
let g:python_host_prog = expand('~/.virtualenvs/neovim2/bin/python')
set runtimepath+=~/.config/nvim/autoload
call plug#begin('~/.local/share/nvim/plugged')
if filereadable(expand("~/.config/nvim/os-plugins.vim"))
source ~/.config/nvim/os-plugins.vim

View file

@ -1,2 +0,0 @@
:PlugInstall
:xa

View file

@ -4,6 +4,5 @@ set -euo pipefail
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# I wish I could use `--headless` here to avoid screen flashing, but this
# doesn't seem to work if I set that.
nvim -s "${CURDIR}/pluginstall.vim"
# 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"