From e12bf77a9fd8ebe81347532528c084d3a07c366a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 19 Jul 2022 23:38:55 +0200 Subject: Add util fun for loading most plugin opts --- fnl/util.fnl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fnl/util.fnl') diff --git a/fnl/util.fnl b/fnl/util.fnl index 0e90396..dd82b23 100644 --- a/fnl/util.fnl +++ b/fnl/util.fnl @@ -28,3 +28,7 @@ val-or-err (vim.notify (.. "Could not load config: " val-or-err) vim.log.levels.WARN)))) + +(defn use-config [plugin config] + (let [plugin (load-plugin plugin)] + (plugin.setup config))) -- cgit v1.2.3-70-g09d2