feat(indent): support @aligned_indent for python

This commit is contained in:
Munif Tanjim 2022-01-19 03:06:06 +06:00 committed by Christian Clason
parent 46438064ac
commit bb60706433
5 changed files with 67 additions and 17 deletions

View file

@ -269,11 +269,12 @@ the node describing the language and `@content` to describe the injection region
### Indents
```
@indent ; Indent children when matching this node
@dedent ; Dedent children when matching this node
@branch ; Dedent itself when matching this node
@ignore ; Do not indent in this node
@auto ; Behaves like 'autoindent' buffer option
@indent ; Indent children when matching this node
@aligned_indent ; Behaves like python aligned/hanging indent
@dedent ; Dedent children when matching this node
@branch ; Dedent itself when matching this node
@ignore ; Do not indent in this node
@auto ; Behaves like 'autoindent' buffer option
```
[Zulip]: nvim-treesitter.zulipchat.com