ts objects

This commit is contained in:
2026-02-09 10:59:05 -06:00
parent 73dfaec988
commit 3f2c2ce65f

View File

@@ -34,4 +34,20 @@ return {
end end
end, end,
}, },
{
"nvim-treesitter/nvim-treesitter-textobjects",
opts = {
move = {
enable = true,
set_jumps = true,
keys = {
goto_next_start = { ["]f"] = "@function.outer", ["]c"] = "@class.outer", ["]a"] = "@parameter.inner" },
goto_next_end = { ["]F"] = "@function.outer", ["]C"] = "@class.outer", ["]A"] = "@parameter.inner" },
goto_previous_start = { ["[f"] = "@function.outer", ["[c"] = "@class.outer", ["[a"] = "@parameter.inner" },
goto_previous_end = { ["[F"] = "@function.outer", ["[C"] = "@class.outer", ["[A"] = "@parameter.inner" },
},
},
},
},
} }