about summary refs log tree commit diff
path: root/fnl/nvrc/macro
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-04-12 16:11:19 +0900
committersefidel <contact@sefidel.net>2024-04-12 23:31:36 +0900
commitf1a3b40d306b249764e1cd0c1108fef4c8a83194 (patch)
tree68c8443d38e588fc93a2c13321571e23aac3cdda /fnl/nvrc/macro
parentf576ab6d3d940cb91745cd8b93a6a4df54c2d227 (diff)
downloadnvimrc-f1a3b40d306b249764e1cd0c1108fef4c8a83194.tar.gz
nvimrc-f1a3b40d306b249764e1cd0c1108fef4c8a83194.zip
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.
Diffstat (limited to 'fnl/nvrc/macro')
-rw-r--r--fnl/nvrc/macro/pack.fnl2
1 files changed, 1 insertions, 1 deletions
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))))