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
1 changed files with 24 additions and 22 deletions

View File

@ -20,6 +20,7 @@ configs.setup({
node_decremental = "<bs>",
},
},
textobjects = {
select = {
enable = true,
lookahead = true,
@ -48,6 +49,7 @@ configs.setup({
["ac"] = { query = "@class.outer", desc = "Select outer part of a class" },
["ic"] = { query = "@class.inner", desc = "Select inner part of a class" },
},
},
move = {
enable = true,
set_jumps = true, -- whether to set jumps in the jumplist
@ -85,5 +87,5 @@ configs.setup({
["[L"] = { query = "@loop.outer", desc = "Prev loop end" },
},
},
},
}
})