From 3dcabe8121c7b8a873fda33db7ad337e86a3633f Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 11 Apr 2022 23:45:28 +0200 Subject: fix: sync based on # paths --- fnl/init.fnl | 5 ++++- fnl/install.fnl | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'fnl') 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)) -- cgit v1.2.3-70-g09d2