This commit is contained in:
Alexander Born 2023-02-20 14:53:30 +01:00
parent 9b175ab1bc
commit 57bbab00c6

View file

@ -14,7 +14,8 @@ return {
local enabled = false
if opts.textobjects then
for _, mod in ipairs({ "move", "select", "swap", "lsp_interop" }) do
if opts.textobjects[mod].enable then
local textobjects_opts = opts.textobjects[mod]
if textobjects_opts ~= nil and textobjects_opts.enable then
enabled = true
break
end