mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Remove textobjects from contributing
This commit is contained in:
parent
26142b3e3a
commit
d1796695ac
1 changed files with 0 additions and 28 deletions
|
|
@ -235,34 +235,6 @@ Possible scope values are:
|
|||
- `global`: The definition is valid in the root scope
|
||||
- `local`: The definition is valid in the containing scope. This is the default behavior
|
||||
|
||||
### Text objects
|
||||
|
||||
You can define text objects based on nodes of the grammar by adding queries in `textobjects.scm`.
|
||||
Each capture group can be declared as `inner` or `outer`.
|
||||
|
||||
```
|
||||
@function.inner
|
||||
@function.outer
|
||||
@class.inner
|
||||
@class.outer
|
||||
@conditional.inner
|
||||
@conditional.outer
|
||||
@loop.inner
|
||||
@loop.outer
|
||||
@call.inner
|
||||
@call.outer
|
||||
@block.inner
|
||||
@block.outer
|
||||
```
|
||||
|
||||
Some nodes only have one type:
|
||||
|
||||
```
|
||||
@comment.outer
|
||||
@parameter.inner
|
||||
@statement.outer
|
||||
```
|
||||
|
||||
### Folds
|
||||
|
||||
You can define folds for a given language by adding a `folds.scm` query :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue