mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 17:03:39 +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
|
local enabled = false
|
||||||
if opts.textobjects then
|
if opts.textobjects then
|
||||||
for _, mod in ipairs({ "move", "select", "swap", "lsp_interop" }) do
|
for _, mod in ipairs({ "move", "select", "swap", "lsp_interop" }) do
|
||||||
local textobjects_opts = opts.textobjects[mod]
|
if opts.textobjects[mod] and opts.textobjects[mod].enable then
|
||||||
if textobjects_opts ~= nil and textobjects_opts.enable then
|
|
||||||
enabled = true
|
enabled = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue