summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstrap.lua3
-rw-r--r--fnl/install.fnl6
2 files changed, 3 insertions, 6 deletions
diff --git a/bootstrap.lua b/bootstrap.lua
index d2f4161..6147c84 100644
--- a/bootstrap.lua
+++ b/bootstrap.lua
@@ -17,9 +17,6 @@ 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 3b36502..d4a4fdb 100644
--- a/fnl/install.fnl
+++ b/fnl/install.fnl
@@ -10,6 +10,6 @@
(use (a.assoc opts 1 plugin))))))
(install-plugins plugins.plugins)
-(let [is_bootstrapped vim.env.BOOTSTRAPPED]
- (if is_bootstrapped?
- (packer.sync)))
+(local path (vim.fn.stdpath (.. "data" "/site/pack/packer/start")))
+(if (= (vim.fn.empty (vim.fn.glob path)) 3)
+ (packer.sync))