mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
refactor(treesitter): nil-check
This commit is contained in:
parent
0eef2c2f29
commit
079c685831
1 changed files with 1 additions and 2 deletions
|
@ -14,8 +14,7 @@ return {
|
|||
local enabled = false
|
||||
if opts.textobjects then
|
||||
for _, mod in ipairs({ "move", "select", "swap", "lsp_interop" }) do
|
||||
local textobjects_opts = opts.textobjects[mod]
|
||||
if textobjects_opts ~= nil and textobjects_opts.enable then
|
||||
if opts.textobjects[mod] and opts.textobjects[mod].enable then
|
||||
enabled = true
|
||||
break
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue