Skip to content

Commit 5218d25

Browse files
feat: can set extension config to to disable
1 parent 3eb9bc5 commit 5218d25

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lua/resession/config.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ M.setup = function(config)
5252
end
5353

5454
for ext_name, ext_config in pairs(M.extensions) do
55-
local ext = util.get_extension(ext_name)
56-
if ext and ext.config then
57-
ext.config(ext_config)
55+
if ext_config then
56+
local ext = util.get_extension(ext_name)
57+
if ext and ext.config then
58+
ext.config(ext_config)
59+
end
5860
end
5961
end
6062

0 commit comments

Comments
 (0)