blob: d4a4fdb1de6578c46f1a4df82ebaea4edd4e075b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
;; 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))))))
(install-plugins plugins.plugins)
(local path (vim.fn.stdpath (.. "data" "/site/pack/packer/start")))
(if (= (vim.fn.empty (vim.fn.glob path)) 3)
(packer.sync))
|