summarylogtreecommitdiffstats
path: root/nvim-doc.install
diff options
context:
space:
mode:
authorJoost Bremmer2016-10-13 17:20:55 +0200
committerJoost Bremmer2016-10-13 17:20:55 +0200
commit4c28518d827f6c2e9155a94c37e1fac91ac76110 (patch)
treeaeceaf29952bc7197c94e611769267910b57b460 /nvim-doc.install
downloadaur-4c28518d827f6c2e9155a94c37e1fac91ac76110.tar.gz
Initial commit
Diffstat (limited to 'nvim-doc.install')
-rw-r--r--nvim-doc.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/nvim-doc.install b/nvim-doc.install
new file mode 100644
index 000000000000..79795d84c37b
--- /dev/null
+++ b/nvim-doc.install
@@ -0,0 +1,14 @@
+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
+}