summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhelipe Teles <phelipe_teles@hotmail.com>2022-06-05 20:11:18 -0300
committerStephan Seitz <stephan.seitz@fau.de>2022-06-14 22:37:52 +0200
commit5e8ec943f8b641e881fc481da076092b5b4d666d (patch)
tree71d56d42183ac2f2e5c1f4cb92a81977df1d0098
parente6ff4c80849a951c976511abe28c52ae24dd89e3 (diff)
fix(indents/yaml): indent sequence/list items
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 ```
-rw-r--r--queries/yaml/indents.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/queries/yaml/indents.scm b/queries/yaml/indents.scm
index 2ed382e0..23a17336 100644
--- a/queries/yaml/indents.scm
+++ b/queries/yaml/indents.scm
@@ -1,3 +1,4 @@
[
(block_mapping_pair)
+ (block_sequence_item)
] @indent