summaryrefslogtreecommitdiff
path: root/fnl/install.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-12 21:15:44 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-12 21:15:44 +0200
commit82779fc7fbb42f5f97bf5840d3248ad84a63c095 (patch)
tree7d8327aa0f7eeea7fed99b69c554eb19c671ef29 /fnl/install.fnl
parent4ec6fb5118f95f00dbacdcf0470e0f9fffd86abc (diff)
parentc561be2e3e71c226985640320559e3bf5e1c7034 (diff)
feat(fennel): migration
Diffstat (limited to 'fnl/install.fnl')
-rw-r--r--fnl/install.fnl15
1 files changed, 15 insertions, 0 deletions
diff --git a/fnl/install.fnl b/fnl/install.fnl
new file mode 100644
index 0000000..50fbe24
--- /dev/null
+++ b/fnl/install.fnl
@@ -0,0 +1,15 @@
+;; Installs plugins with packer.
+(module install {autoload {a aniseed.core
+ plugins plugins
+ packer packer
+ bootstrap bootstrap
+ util util}})
+
+(defn- install-plugins [plgs]
+ (packer.startup (fn [use]
+ (each [plugin opts (pairs plgs)]
+ (use (a.assoc opts 1 plugin))))))
+
+(install-plugins plugins.plugins)
+(if (= util.num-plugins 3)
+ (packer.sync))