diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 21:22:26 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 21:22:26 +0200 |
commit | 6dc7c2ef2a53a0fee742de19bfdd1e4a75a1a7c2 (patch) | |
tree | ae8a1abb68e5796101b5c605b8d8761c045d4cd5 | |
parent | 5e5fac15095b4b2fb12c61e2b1049496b0c286ce (diff) |
fix(bootstrap): test setting env var
-rw-r--r-- | bootstrap.lua | 3 | ||||
-rw-r--r-- | fnl/install.fnl | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap.lua b/bootstrap.lua index 6147c84..d2f4161 100644 --- a/bootstrap.lua +++ b/bootstrap.lua @@ -17,6 +17,9 @@ local function ensure(user, repository) ) ) execute(fmt("packadd %s", repository)) + if repository == "packer.nvim" then + vim.env.BOOTSTRAPPED = true + end end end 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) |