nvim: Install plugins as a post-install hook
This commit is contained in:
parent
6c4aa5b99e
commit
9dd750694b
3 changed files with 12 additions and 0 deletions
|
|
@ -32,3 +32,6 @@
|
||||||
~/.zprofile: zsh/.zprofile
|
~/.zprofile: zsh/.zprofile
|
||||||
~/.zshenv: zsh/.zshenv
|
~/.zshenv: zsh/.zshenv
|
||||||
~/.zshrc: zsh/.zshrc
|
~/.zshrc: zsh/.zshrc
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
- ./neovim/postinstall
|
||||||
|
|
|
||||||
2
neovim/pluginstall.vim
Normal file
2
neovim/pluginstall.vim
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
:PlugInstall
|
||||||
|
:xa
|
||||||
7
neovim/postinstall
Executable file
7
neovim/postinstall
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
|
nvim --headless -s "${CURDIR}/pluginstall.vim"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue