diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-03 21:25:44 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-03 21:25:44 +0200 |
commit | f7a4339bc19bc6c2fb616faa43b879c5e145aa91 (patch) | |
tree | 8b790b31a83a44852e0fc368f47ddb645e87d778 | |
parent | d08d26c8f018af89649004b397352cf24a97aaee (diff) |
fix(install): add fnl script
-rw-r--r-- | fnl/install.fnl | 22 |
1 files 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) |