From acdd91aca61e5d8b8653cd90cbfbee01f6fb6fca Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 29 Jul 2024 00:52:43 +0200 Subject: Refactor --- fnl/util/load.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fnl/util') diff --git a/fnl/util/load.fnl b/fnl/util/load.fnl index fef9b6e..afc6cf1 100644 --- a/fnl/util/load.fnl +++ b/fnl/util/load.fnl @@ -1,8 +1,8 @@ ;; Load file with function -(λ load-and-apply [path f] +(λ apply-to-files [path f] (each [fname type (vim.fs.dir (.. (vim.fn.stdpath :config) path))] (when (= type :file) (f (fname:match "^(.*)%.fnl$"))))) -{: load-and-apply} +{: apply-to-files} -- cgit v1.2.3-70-g09d2