Files
cnix/home/modules/devtools/neovim/config/treesitter-textobjects.lua
2024-08-31 20:24:08 +02:00

15 lines
343 B
Lua

require'nvim-treesitter.configs'.setup {
textobjects = {
select = {
enable = true,
keymaps = {
-- You can use the capture groups defined in textobjects.scm
["af"] = "@function.outer",
["if"] = "@function.inner",
["ac"] = "@class.outer",
["ic"] = "@class.inner",
},
},
},
}