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/install.fnl | |
parent | 885b22bf9e7e291e091836894b45c5e6ec221811 (diff) |
fix: sync based on # paths
Diffstat (limited to 'fnl/install.fnl')
-rw-r--r-- | fnl/install.fnl | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |