Skip to content

Commit 99f52c8

Browse files
authored
Update init.lua
1 parent 52d1e1d commit 99f52c8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lua/pairs/init.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ function M.mappairs()
8181
map('i', '<BS>', autopairs_bs, opts)
8282
end
8383

84-
M.mappairs()
84+
function M.setup(opts)
85+
if opts then
86+
config = vim.tbl_deep_extend("force", config, opts)
87+
end
88+
89+
if config.enabled then
90+
M.mappairs()
91+
end
92+
end
8593

8694
return M

0 commit comments

Comments
 (0)