diff options
Diffstat (limited to 'fnl/plugins/init.fnl')
-rw-r--r-- | fnl/plugins/init.fnl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fnl/plugins/init.fnl b/fnl/plugins/init.fnl index 9fea347..d767506 100644 --- a/fnl/plugins/init.fnl +++ b/fnl/plugins/init.fnl @@ -1,10 +1,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)))))) - )) + (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) |