diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-01 00:25:54 +0200 | 
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-01 00:25:54 +0200 | 
| commit | 96b8104149c526b048489264992034ecf94315c5 (patch) | |
| tree | 7ba13e2179e91eae8135f7cefe94bdc3a0329ff3 /fnl | |
| parent | 6c426d5c48c4398186cf7f9bb52e20b45437c2df (diff) | |
feat(install): wip with fnl plugin installer
Diffstat (limited to 'fnl')
| -rw-r--r-- | fnl/install.fnl | 22 | 
1 files changed, 22 insertions, 0 deletions
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 +))  |