blob: 7222ebbcb3f9cf5edcaee00f577672220914db05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
;; Utility functions.
(module util {autoload {nvim aniseed.nvim}})
(def- path (.. (vim.fn.stdpath :data) :/site/pack/packer/start))
(def num-plugins (length (vim.fn.readdir path)))
(defn load-config []
(if (> num-plugins 3)
(require :config)))
(defn load-plugin [name]
(let [(ok? val-or-err) (pcall require name)]
(if ok?
val-or-err
(vim.notify
(.. "Could not load config: " val-or-err)
vim.log.levels.WARN))))
|