blob: a4dcf5b067e76dd12ba03bb14ba2045e51b66244 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
;; Utility functions.
(module util {autoload {a aniseed.core nvim aniseed.nvim}})
(defn prequire [name]
(let [(ok? plugin) (pcall require name)]
(if ok?
plugin
(vim.notify (.. "Could not load config: " plugin)
vim.log.levels.WARN))))
(defn setup [plugin config]
(let [plugin (prequire plugin)]
(plugin.setup config)))
|