aboutsummarylogtreecommitdiffstats
path: root/deoplete.install
diff options
context:
space:
mode:
Diffstat (limited to 'deoplete.install')
-rw-r--r--deoplete.install46
1 files changed, 28 insertions, 18 deletions
diff --git a/deoplete.install b/deoplete.install
index f83a1d7f4a7a..4b51238632e9 100644
--- a/deoplete.install
+++ b/deoplete.install
@@ -1,31 +1,41 @@
+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."
+}
+
update_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. "
+ 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. "
}
post_install() {
- 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."
+ 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."
- echo ""
- echo " you might need to add the following to your init.vim/vimrc:
- \"let g:deoplete#enable_at_startup = 1\""
- echo ""
+ 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
}
post_upgrade() {
- update_helptag ${1}
+ update_helptag ${1}
+ update_vim_help "$1"
}
post_remove() {
- update_helptag
+ update_helptag
- echo ""
- echo " you might need to remove the following to your init.vim/vimrc:
- \"let g:deoplete#enable_at_startup = 1\""
- echo ""
+ 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
}