From f7a4339bc19bc6c2fb616faa43b879c5e145aa91 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 3 Apr 2022 21:25:44 +0200 Subject: fix(install): add fnl script --- fnl/install.fnl | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/fnl/install.fnl b/fnl/install.fnl index 33453ef..95b2c07 100644 --- a/fnl/install.fnl +++ b/fnl/install.fnl @@ -3,20 +3,12 @@ {autoload { a aniseed.core plugins plugins - packer packer - nvim aniseed.nvim}}) + packer packer}}) -(defn- use [...] - (let [plugins [...]] - (packer.startup - (fn [use]) -) +(defn- install-plugins [...] + (each [plugin opts (pairs [...])] + (packer.startup ( + fn [use] + (use (a.assoc opts 1 plugin)))))) -(defn- override-use [use] - (fn [plugin opts] - (use (a.assoc (or opts {}) 1 name)) -) - -(packer.startup( - fn use -)) +(install-plugins plugins) -- cgit v1.2.3-70-g09d2