blob: d767506f3aa2e7bafa2b164ecb1545c7d3e898ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
;; Returns a list of all plugins.
(let [plugins (require :plugins.lsp)
path (.. (vim.fn.stdpath :config) :/fnl/plugins)]
(if (vim.loop.fs_stat path)
(do
(each [fname (vim.fs.dir path)]
(let [fname (fname:match "^(.*)%.fnl$")]
(if (and (not= fname nil) (not= fname :init) (not= fname :lazy))
(table.insert plugins (require (.. :plugins. fname))))))))
plugins)
|