redo vim-lightline-git/PKGBUILD

This commit is contained in:
2017-12-25 17:30:56 -08:00
parent ea9f55d11f
commit 5d937b8d00
3 changed files with 67 additions and 34 deletions

View File

@ -0,0 +1,34 @@
update_neovim_helptag() {
echo -n "Updating neovim (nvim) help tags..."
/usr/bin/nvim --noplugins -u NONE -U NONE \
--cmd ":helptags /usr/share/nvim/runtime/doc" --cmd ":q" > /dev/null 2>&1
echo "done. "
}
update_vim_helptag() {
echo -n 'Updating vim help tags...'
/usr/bin/vim --noplugins -u NONE -U NONE \
--cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
echo 'done.'
}
post_install() {
update_neovim_helptag
update_vim_helptag
echo ""
echo " see https://github.com/itchyny/lightline.vim for
tips on setting $TERM and configuring init.vim/vimrc"
echo ""
}
post_upgrade() {
update_neovim_helptag
update_vim_helptag
}
post_remove() {
update_neovim_helptag
update_vim_helptag
}
# vim:set ts=2 sw=2 et: