fix: treesitter-textobjects setup
This commit is contained in:
parent
21dcb21444
commit
c192a0fb29
1 changed files with 24 additions and 22 deletions
|
@ -20,6 +20,7 @@ configs.setup({
|
||||||
node_decremental = "<bs>",
|
node_decremental = "<bs>",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
textobjects = {
|
||||||
select = {
|
select = {
|
||||||
enable = true,
|
enable = true,
|
||||||
lookahead = true,
|
lookahead = true,
|
||||||
|
@ -48,6 +49,7 @@ configs.setup({
|
||||||
["ac"] = { query = "@class.outer", desc = "Select outer part of a class" },
|
["ac"] = { query = "@class.outer", desc = "Select outer part of a class" },
|
||||||
["ic"] = { query = "@class.inner", desc = "Select inner part of a class" },
|
["ic"] = { query = "@class.inner", desc = "Select inner part of a class" },
|
||||||
},
|
},
|
||||||
|
},
|
||||||
move = {
|
move = {
|
||||||
enable = true,
|
enable = true,
|
||||||
set_jumps = true, -- whether to set jumps in the jumplist
|
set_jumps = true, -- whether to set jumps in the jumplist
|
||||||
|
@ -85,5 +87,5 @@ configs.setup({
|
||||||
["[L"] = { query = "@loop.outer", desc = "Prev loop end" },
|
["[L"] = { query = "@loop.outer", desc = "Prev loop end" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue