summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2023-04-18 07:03:16 +0200
committerache <ache@ache.one>2023-04-18 07:03:16 +0200
commit106973a2f7945877b9f7977af4cb88dacfc21b5c (patch)
treefbe8f66e0cb0c5534bd457364ba11b2ff1946fda
parentDisable gen_tags since incompatible with last neovim version (diff)
Add update script
-rwxr-xr-xpack/ache/start/updatePlugin.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/pack/ache/start/updatePlugin.py b/pack/ache/start/updatePlugin.py
new file mode 100755
index 0000000..21f9d7e
--- /dev/null
+++ b/pack/ache/start/updatePlugin.py
@@ -0,0 +1,24 @@
+#!/bin/env python
+
+import subprocess
+from pathlib import Path
+
+
+for plugin in Path('.').iterdir():
+ if (plugin / ".git").exists():
+ subprocess.run(["git", "pull"], cwd=str(plugin))
+
+ # The option --init is necessery if there is new submodule
+ subprocess.run(["git", "submodule", "update", "--init", "--recursive"], cwd=str(plugin))
+
+# Post install script
+
+subprocess.run(["make", "hexokinase"], cwd="vim-hexokinase")
+print('Post install Hexakinase done ✔️')
+
+installCmd = f"+:CocUpdate"
+subprocess.run(["nvim", installCmd])
+print('Coc plugins update done ✔️')
+
+print("Please check health 🏥")
+subprocess.run(["nvim", "+:checkhealth"])