From cfa36e9d3d56d59864b99198cbae7abe31e57fe9 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 11 Jan 2023 00:54:06 +0100 Subject: Format --- fnl/plugins/init.fnl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'fnl/plugins/init.fnl') 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) -- cgit v1.2.3-70-g09d2