blob: a773b6ea347f49edb8de3baeb0a04b77b682f4e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
;; Utility functions.
(module util
{autoload {nvim aniseed.nvim}})
(defn autocmd [name opts]
(nvim.create_autocmd name opts))
(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))))
|