summaryrefslogtreecommitdiff
path: root/fnl/plugins/init.fnl
blob: 66ec1e9db7e799a2806056198a9ab33baf1ad063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
;; Load all plugins.

(local 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)))))
                 (table.insert plugins (require :plugins.lsp))
                 (table.insert plugins (require :plugins.core.hotpot))
                 plugins))

(let [lazy (require :plugins.core.lazy)]
  (lazy.setup plugins))