nvim-treesitter/queries/yaml/indents.scm
Phelipe Teles 1a49d068a7 fix(indents/yaml): improve error handling
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-14 22:37:52 +02:00

6 lines
74 B
Scheme

[
(block_mapping_pair)
(block_sequence_item)
] @indent
(ERROR) @auto