summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-07 22:04:47 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-06-07 22:04:47 +0200
commit6bd5bb2168c017ed11b8918bafe42b703da32acc (patch)
tree13fd286d85ab017c9305ce6c43d5c43b35d6594b
parentc9669aae6e43bf0caf1d255eea5d4dc61a385e36 (diff)
Refactor loading of plugins last
-rw-r--r--fnl/util.fnl5
1 files 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)]