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

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

(install-plugins plugins.plugins)