diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-11 00:54:06 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-11 00:54:06 +0100 |
commit | cfa36e9d3d56d59864b99198cbae7abe31e57fe9 (patch) | |
tree | 6e07fbeafa49ff3df181a65277059e0d4423550f /fnl/plugins | |
parent | cb462bb378bc17f5bd9d3f0852f2ec8b899755bb (diff) |
Format
Diffstat (limited to 'fnl/plugins')
-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) |