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


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

(require :config.packer)
(install-plugins plugins.plugins)
(if (= util.num-plugins 3)
    (packer.sync))