2018-02-25 18:12:47 -08:00
|
|
|
update_vim_help() {
|
|
|
|
echo -n "Updating Vim help tags..."
|
|
|
|
/usr/bin/vim --noplugin -u NONE -U NONE \
|
|
|
|
--cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
|
|
|
|
echo "done."
|
|
|
|
}
|
|
|
|
|
2017-12-24 22:34:56 -08:00
|
|
|
update_helptag() {
|
2018-02-25 18:12:47 -08:00
|
|
|
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. "
|
2017-12-24 22:34:56 -08:00
|
|
|
}
|
|
|
|
|
2017-12-24 21:56:41 -08:00
|
|
|
post_install() {
|
2018-02-25 18:12:47 -08:00
|
|
|
update_helptag
|
|
|
|
echo ""
|
|
|
|
echo " Note: Python3 must be enabled before updating remote plugins
|
|
|
|
If Deoplete was installed prior to Python support being added to Neovim, :UpdateRemotePlugins
|
|
|
|
should be executed manually in order to enable auto-completion."
|
2017-12-24 21:56:41 -08:00
|
|
|
|
2018-02-25 18:12:47 -08:00
|
|
|
echo ""
|
|
|
|
echo " you might need to add the following to your init.vim/vimrc:
|
|
|
|
\"let g:deoplete#enable_at_startup = 1\""
|
|
|
|
echo ""
|
|
|
|
update_vim_help
|
2017-12-24 21:56:41 -08:00
|
|
|
}
|
2017-12-24 22:34:56 -08:00
|
|
|
|
|
|
|
post_upgrade() {
|
2018-02-25 18:12:47 -08:00
|
|
|
update_helptag ${1}
|
|
|
|
update_vim_help "$1"
|
2017-12-24 22:34:56 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
2018-02-25 18:12:47 -08:00
|
|
|
update_helptag
|
2017-12-25 11:30:02 -08:00
|
|
|
|
2018-02-25 18:12:47 -08:00
|
|
|
echo ""
|
|
|
|
echo " you might need to remove the following to your init.vim/vimrc:
|
|
|
|
\"let g:deoplete#enable_at_startup = 1\""
|
|
|
|
echo ""
|
|
|
|
update_vim_help
|
2017-12-24 22:34:56 -08:00
|
|
|
}
|