summarylogtreecommitdiffstats
path: root/vim-lumen.install
blob: 61051763de1d27d44262a19bdcb12e28cd0af9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
    if command -v 'nvim' &>/dev/null ; then
        vimprog='/usr/bin/nvim'
    else
        vimprog='/usr/bin/vim'
    fi

    # adapted from https://pastebin.com/5PNhhrMv
    echo -n "Updating help tags..."
    $vimprog --noplugins -u NONE \
        --cmd ":helptags /usr/share/vim/vimfiles/doc/" --cmd ":q" > /dev/null 2>&1
    echo "done."
}

post_upgrade() {
	post_install
}

post_remove() {
	post_install
}