summaryrefslogtreecommitdiff
path: root/fnl/install.fnl
blob: 6f37ae8b6af2bd09ab61a0aceda8f2f69dfedff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;; Installs plugins with packer.
(module install
  {autoload {a aniseed.core
             packer packer
             plugins plugins
             util util}})

(defn- sync []
  (if (= util.num-plugins 3)
      (packer.sync)))

(defn- install []
  (packer.startup (fn [use]
    (each [plugin opts (pairs plugins.plugins)]
      (use (a.assoc opts 1 plugin))))))

(install)
(sync)