summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 19:55:34 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 19:55:34 +0200
commit903b92b2528d23267036a78fa92efd7a389833c4 (patch)
tree9dfaaa0af61e761f25b84301ead3e4839696cda6 /fnl
parentc97475eeabc08df8aa5dfe6d476866217aaa55dc (diff)
fix(install): run bootstrap
Diffstat (limited to 'fnl')
-rw-r--r--fnl/install.fnl10
1 files changed, 8 insertions, 2 deletions
diff --git a/fnl/install.fnl b/fnl/install.fnl
index d80de8f..9586948 100644
--- a/fnl/install.fnl
+++ b/fnl/install.fnl
@@ -1,9 +1,15 @@
;; Installs plugins with packer.
-(module install {autoload {a aniseed.core plugins plugins packer packer}})
+(module install {autoload {a aniseed.core
+ plugins plugins
+ packer packer
+ bootstrap bootstrap}})
(defn- install-plugins [plgs]
(packer.startup (fn [use]
(each [plugin opts (pairs plgs)]
- (use (a.assoc opts 1 plugin))))))
+ (use (a.assoc opts 1 plugin)))))
+ (if (= is_bootstrapped true)
+ ((require :config.packer) .sync)))
+(local is_bootstrapped (bootstrap.run))
(install-plugins plugins.plugins)