summaryrefslogtreecommitdiff
path: root/fnl/config/util.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 20:22:49 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 20:22:49 +0100
commit31cab8c4624770df1d3ed7c7f7980bc1d6bed8d0 (patch)
tree81d5660e1172840390a10aa9be500f1be002f972 /fnl/config/util.fnl
parente4da06e19c072322573c916fa6bdda8827a59e6c (diff)
Refactor loading of plugins
Diffstat (limited to 'fnl/config/util.fnl')
-rw-r--r--fnl/config/util.fnl6
1 files changed, 6 insertions, 0 deletions
diff --git a/fnl/config/util.fnl b/fnl/config/util.fnl
index dbd635f..e2800a6 100644
--- a/fnl/config/util.fnl
+++ b/fnl/config/util.fnl
@@ -12,3 +12,9 @@
themes (require :telescope.themes)
theme (. opts :theme)]
((. telescope builtin) ((. themes theme) opts))))
+
+(defn load [plugins]
+ (let [configs []]
+ (each [_ plugin (pairs plugins)]
+ (table.insert configs (require plugin)))
+ configs))