From 987f698c932ad75c461b81e035d5eb1788051dd5 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Sun, 24 Apr 2022 20:10:28 +0200 Subject: refactor(init): clean up --- fnl/install.fnl | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'fnl/install.fnl') diff --git a/fnl/install.fnl b/fnl/install.fnl index af034d6..6f37ae8 100644 --- a/fnl/install.fnl +++ b/fnl/install.fnl @@ -1,15 +1,18 @@ ;; Installs plugins with packer. -(module install {autoload {a aniseed.core - packer packer - plugins plugins - util util}}) +(module install + {autoload {a aniseed.core + packer packer + plugins plugins + util util}}) -(defn- install-plugins [plgs] +(defn- sync [] + (if (= util.num-plugins 3) + (packer.sync))) + +(defn- install [] (packer.startup (fn [use] - (each [plugin opts (pairs plgs)] + (each [plugin opts (pairs plugins.plugins)] (use (a.assoc opts 1 plugin)))))) -(require :config.packer) -(install-plugins plugins.plugins) -(if (= util.num-plugins 3) - (packer.sync)) +(install) +(sync) -- cgit v1.2.3-70-g09d2