blob: f451fc93aa6974c58dee3e7f8a105a7864d0aaff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
;; Load all plugins.
(local editor-plugins (let [plugins []
path (.. (vim.fn.stdpath :config)
:/fnl/plugins/editor)]
(each [fname (vim.fs.dir path)]
(let [fname (fname:match "^(.*)%.fnl$")]
(table.insert plugins
(require (.. :plugins.editor. fname)))))
plugins))
(local plugins (let [plugins editor-plugins]
(table.insert plugins (require :plugins.lsp))
(table.insert plugins (require :plugins.core.hotpot))
plugins))
(let [lazy (require :plugins.core.lazy)]
(lazy.setup plugins))
|