mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(indents/yaml): only indent mapping pair if value is a block
This improves the following situation, in which '|' is the cursor position:
```yaml
- key1: value1
key2: value2|
```
Before this commit, by pressing Enter would result in this indentation:
```yaml
- key1: value1
key2: value2
|
```
Which is less convenient than this:
```yaml
- key1: value1
key2: value2
|
```
This commit is contained in:
parent
1a49d068a7
commit
8bd07c88b6
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[
|
||||
(block_mapping_pair)
|
||||
(block_mapping_pair value: (block_node))
|
||||
(block_sequence_item)
|
||||
] @indent
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue