From 31cab8c4624770df1d3ed7c7f7980bc1d6bed8d0 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 8 Jan 2023 20:22:49 +0100 Subject: Refactor loading of plugins --- fnl/config/util.fnl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fnl/config/util.fnl') 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)) -- cgit v1.2.3-70-g09d2