summaryrefslogtreecommitdiff
path: root/queries/yaml/indents.scm
AgeCommit message (Collapse)Author
2022-06-14fix(indents/yaml): only indent mapping pair if value is a blockPhelipe Teles
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 | ```
2022-06-14fix(indents/yaml): improve error handlingPhelipe Teles
This helps to solve the first issue reported at #1377. The problem is that the line loses its indentation when we start inserting a new mapping pair (specifically, when we enter the character ":"). The issue seems to be solved by auto indenting ERROR nodes.
2022-06-14fix(indents/yaml): indent sequence/list itemsPhelipe Teles
This solves the second issue reported at #1377, in which the cursor would not be aligned with the line "key2: value2" when entering a new line below it. ```yaml - key1: value1 key2: value2 ```
2021-01-14feat: added more indent querieselianiva