Skip to content

Commit 4343b66

Browse files
committed
fix: maintenance
Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
1 parent 1b287c5 commit 4343b66

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

lua/boolean-toggle.lua

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ local function get_boolean_surround(line, start_col, end_col)
7676
end
7777

7878
---@class BooleanToggle
79+
---@field config BooleanToggle.Config
80+
---@field util BooleanToggle.Util
7981
local M = {}
8082

8183
---@param ft? string
@@ -333,5 +335,14 @@ function M.cursor_set_to_true()
333335
end
334336
end
335337

336-
return M
338+
local BooleanToggle = setmetatable(M, {
339+
__index = function(self, k)
340+
if Util.mod_exists('boolean-toggle.' .. k) then
341+
return require('boolean-toggle.' .. k)
342+
end
343+
return rawget(self, k) or nil
344+
end,
345+
})
346+
347+
return BooleanToggle
337348
-- vim: set ts=2 sts=2 sw=2 et ai si sta:

0 commit comments

Comments
 (0)