Skip to content
This repository was archived by the owner on Dec 7, 2025. It is now read-only.

Commit c29e8ea

Browse files
committed
update
1 parent 17ae5c2 commit c29e8ea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lua/strive/init.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ function Plugin.new(spec)
582582
keys = {}, -- Keys to trigger loading
583583

584584
-- Configuration
585-
setup_opts = spec.setup or {}, -- Options for plugin setup()
585+
setup_opts = spec.setup or nil, -- Options for plugin setup()
586586
init_opts = spec.init, -- Options for before load plugin
587587
config_opts = spec.config, -- Config function to run after loading
588588
after_fn = spec.after, -- Function to run after dependencies load
@@ -664,7 +664,10 @@ function Plugin:load()
664664

665665
self:packadd()
666666

667-
self:call_setup()
667+
if self.setup_opts then
668+
self:call_setup()
669+
end
670+
668671
load_opts(self.config_opts)
669672

670673
-- Update status

0 commit comments

Comments
 (0)