summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fnl/init.fnl5
-rw-r--r--fnl/install.fnl4
2 files changed, 6 insertions, 3 deletions
diff --git a/fnl/init.fnl b/fnl/init.fnl
index f62b1cf..7e6ddc7 100644
--- a/fnl/init.fnl
+++ b/fnl/init.fnl
@@ -1,2 +1,5 @@
;; Install, load settings, and load plugin configs.
-(module init {require {_ settings _ install _ config}})
+(module init)
+(require :settings)
+(require :install)
+(require :config)
diff --git a/fnl/install.fnl b/fnl/install.fnl
index d4a4fdb..e518043 100644
--- a/fnl/install.fnl
+++ b/fnl/install.fnl
@@ -10,6 +10,6 @@
(use (a.assoc opts 1 plugin))))))
(install-plugins plugins.plugins)
-(local path (vim.fn.stdpath (.. "data" "/site/pack/packer/start")))
-(if (= (vim.fn.empty (vim.fn.glob path)) 3)
+(local path (.. (vim.fn.stdpath "data") "/site/pack/packer/start"))
+(if (= (# (vim.fn.readdir path)) 3)
(packer.sync))