neovim: Source init.vim to use headless PlugInstall
This commit is contained in:
parent
18a3dfa94e
commit
56f6c13001
3 changed files with 2 additions and 6 deletions
|
|
@ -6,7 +6,6 @@ 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:python_host_prog = expand('~/.virtualenvs/neovim2/bin/python')
|
||||||
|
|
||||||
set runtimepath+=~/.config/nvim/autoload
|
|
||||||
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"))
|
||||||
source ~/.config/nvim/os-plugins.vim
|
source ~/.config/nvim/os-plugins.vim
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
:PlugInstall
|
|
||||||
:xa
|
|
||||||
|
|
@ -4,6 +4,5 @@ set -euo pipefail
|
||||||
|
|
||||||
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
# I wish I could use `--headless` here to avoid screen flashing, but this
|
# https://github.com/junegunn/vim-plug/wiki/tips#install-plugins-on-the-command-line
|
||||||
# doesn't seem to work if I set that.
|
nvim -es -u ~/.config/nvim/init.vim -i NONE -c "PlugInstall" -c "qa"
|
||||||
nvim -s "${CURDIR}/pluginstall.vim"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue