summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 21:22:26 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-11 21:22:26 +0200
commit6dc7c2ef2a53a0fee742de19bfdd1e4a75a1a7c2 (patch)
treeae8a1abb68e5796101b5c605b8d8761c045d4cd5 /fnl
parent5e5fac15095b4b2fb12c61e2b1049496b0c286ce (diff)
fix(bootstrap): test setting env var
Diffstat (limited to 'fnl')
-rw-r--r--fnl/install.fnl4
1 files changed, 3 insertions, 1 deletions
diff --git a/fnl/install.fnl b/fnl/install.fnl
index f6d741f..faa91e6 100644
--- a/fnl/install.fnl
+++ b/fnl/install.fnl
@@ -7,6 +7,8 @@
(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 vim.env.BOOTSTRAPPED
+ (packer.sync)))
(install-plugins plugins.plugins)