nvim-treesitter-textobjects icon indicating copy to clipboard operation
nvim-treesitter-textobjects copied to clipboard

Results 147 nvim-treesitter-textobjects issues
Sort by recently updated
recently updated
newest added

**Describe the bug** Currently, the `class.outer` query supports only classes, while it seems that it should support all entities that represent "types": - `class` - `struct` - `record` - `enum`...

bug

Two bugs in the code cause the select feature to be totally unusable after `include_surrouding_whitespaces` is enabled.

`include_surrounding_whitespace` should be inside the `select`.

### Describe the bug TS doesn't select nothing when trying a function selection (`:TSTextobjectSelect @function.[outer|inner]` ), in a JS generator function, which has a `*` after the `function` keyword. ```javascript...

bug

**Describe the bug** The recommended setup for swapping text objects on main is: ```lua -- keymaps local swap = require("nvim-treesitter-textobjects.swap") vim.keymap.set("n", "a", swap.swap_next("@parameter.inner")) vim.keymap.set("n", "A", swap.swap_next("@parameter.outer")) ``` But these keymaps...

bug

**Describe the bug** When using the @comment.inner text object, nothing gets selected. @comment.outer works fine. **To Reproduce** 1. Add this to your treesitter config. ``` textobjects = { select =...

bug

Hello! This PR updates the PHP queries to be compatible with the BCs in https://github.com/tree-sitter/tree-sitter-php/pull/247 Thanks!