summaryrefslogtreecommitdiff
path: root/fnl/util
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-07-29 00:52:43 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-07-29 00:52:43 +0200
commitacdd91aca61e5d8b8653cd90cbfbee01f6fb6fca (patch)
tree747b31a607cbfbaafb3703bf2ea3794aeb7402d6 /fnl/util
parentf048e7a0042c10885ee37301464febc8c8f63e96 (diff)
Refactor
Diffstat (limited to 'fnl/util')
-rw-r--r--fnl/util/load.fnl4
1 files changed, 2 insertions, 2 deletions
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}