All of my important config files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
748 B

3 years ago
  1. require'nvim-treesitter.configs'.setup {
  2. textobjects = {
  3. select = {
  4. enable = true,
  5. -- Automatically jump forward to textobj, similar to targets.vim
  6. lookahead = true,
  7. keymaps = {
  8. -- You can use the capture groups defined in textobjects.scm
  9. ["af"] = "@function.outer",
  10. ["if"] = "@function.inner",
  11. ["ac"] = "@class.outer",
  12. ["ic"] = "@class.inner",
  13. -- Or you can define your own textobjects like this
  14. --["iF"] = {
  15. --python = "(function_definition) @function",
  16. --cpp = "(function_definition) @function",
  17. --c = "(function_definition) @function",
  18. --java = "(method_declaration) @function",
  19. --},
  20. },
  21. },
  22. },
  23. }