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

(fn get-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))
    plugins))

(let [_ (require :plugins.core.hotpot)
      lazy (require :plugins.core.lazy)]
  (lazy.setup (get-plugins)))