From 96b8104149c526b048489264992034ecf94315c5 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 1 Apr 2022 00:25:54 +0200 Subject: feat(install): wip with fnl plugin installer --- fnl/install.fnl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 fnl/install.fnl (limited to 'fnl/install.fnl') diff --git a/fnl/install.fnl b/fnl/install.fnl new file mode 100644 index 0000000..33453ef --- /dev/null +++ b/fnl/install.fnl @@ -0,0 +1,22 @@ +;; Installs plugins with packer. +(module install + {autoload { + a aniseed.core + plugins plugins + packer packer + nvim aniseed.nvim}}) + +(defn- use [...] + (let [plugins [...]] + (packer.startup + (fn [use]) +) + +(defn- override-use [use] + (fn [plugin opts] + (use (a.assoc (or opts {}) 1 name)) +) + +(packer.startup( + fn use +)) -- cgit v1.2.3-70-g09d2