From 309861ddf18c18d022dee43e962ba4b45d098a8b Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Sun, 24 Dec 2017 22:34:56 -0800 Subject: [PATCH] extend deoplete-git/deoplete.install --- deoplete-git/deoplete.install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/deoplete-git/deoplete.install b/deoplete-git/deoplete.install index 8c5d924..9a1a73b 100644 --- a/deoplete-git/deoplete.install +++ b/deoplete-git/deoplete.install @@ -1,4 +1,11 @@ +update_helptag() { + echo -n "Updating vim 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 @@ -9,3 +16,11 @@ post_install() { \"let g:deoplete#enable_at_startup = 1\"" echo "" } + +post_upgrade() { + update_helptag ${1} +} + +post_remove() { + update_helptag +}