post_install() {
    echo -n "Updating neovim 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_upgrade() {
  post_install $1
}

post_remove() {
  post_install
}