From 6bd5bb2168c017ed11b8918bafe42b703da32acc Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 7 Jun 2022 22:04:47 +0200 Subject: Refactor loading of plugins last --- fnl/util.fnl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fnl/util.fnl b/fnl/util.fnl index d1b3665..ba859df 100644 --- a/fnl/util.fnl +++ b/fnl/util.fnl @@ -20,9 +20,8 @@ (defn load-plugins [] (install) (let [num-installed-plugins (num-installed-plugins) num-plugins (num-plugins)] - (if (= num-installed-plugins num-plugins) - (require :config) - (packer.sync)))) + (if (not= num-installed-plugins num-plugins) + (packer.sync))) (require :config)) (defn load-plugin [name] (let [(ok? val-or-err) (pcall require name)] -- cgit v1.2.3-70-g09d2