From f1a3b40d306b249764e1cd0c1108fef4c8a83194 Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 12 Apr 2024 16:11:19 +0900 Subject: fix(macro/pack): don't pass empty set to setup This commit fixes a bug where some plugins will not behave correctly when configured with `:init`, as it essentially overrided all of the default settings. --- fnl/nvrc/macro/pack.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fnl') diff --git a/fnl/nvrc/macro/pack.fnl b/fnl/nvrc/macro/pack.fnl index 074723e..841cc35 100644 --- a/fnl/nvrc/macro/pack.fnl +++ b/fnl/nvrc/macro/pack.fnl @@ -23,7 +23,7 @@ options (collect [k v (pairs options)] (if (= k :req) (values :config `#(require (string.format "nvrc.packs.%s" ,v))) - (= k :init) (values :config `#((. (require ,v) :setup) {})) + (= k :init) (values :config `#((. (require ,v) :setup))) (values k v)))] (doto options (tset 1 identifier)))) -- cgit 1.4.1