fix: treesitter-textobjects setup

This commit is contained in:
Sayantan Santra 2024-03-27 23:35:52 -05:00
parent 21dcb21444
commit c192a0fb29
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -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" },
}, },
}, },
}, }
}) })