Files
nixos/hosts/nb-new.cloonar.com/modules/nvim/config/treesitter-textobjects.lua
2024-07-03 20:08:09 +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",
},
},
},
}