summaryrefslogtreecommitdiff
path: root/fnl/plugins/init.fnl
blob: 470776ea02612741026f4ab9bd2b9594ef3b2f41 (plain)
1
2
3
4
5
6
7
8
9
10
;; Load all plugins.

(let [plugins []
      path (.. (vim.fn.stdpath :config) :/fnl/plugins)]
  (each [fname (vim.fs.dir path)]
    (let [fname (fname:match "^(.*)%.fnl$")]
      (if (and (not= fname nil) (not= fname :init))
          (table.insert plugins (require (.. :plugins. fname))))))
  (table.insert plugins (require :plugins.lsp))
  plugins)