diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 23:45:28 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-11 23:45:28 +0200 |
commit | 3dcabe8121c7b8a873fda33db7ad337e86a3633f (patch) | |
tree | 5091b8ce48fd3cfd80fa554677f2cb0d070a5338 /fnl | |
parent | 885b22bf9e7e291e091836894b45c5e6ec221811 (diff) |
fix: sync based on # paths
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/init.fnl | 5 | ||||
-rw-r--r-- | fnl/install.fnl | 4 |
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)) |