From 5954dafdbc8213ff7a84349418d15d293fcdcd4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sun, 9 May 2021 19:02:35 +0900 Subject: [PATCH] Indent array and tuple lists too. --- helix-core/src/indent.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs index d0a0e4146..23b21ed3b 100644 --- a/helix-core/src/indent.rs +++ b/helix-core/src/indent.rs @@ -55,7 +55,8 @@ fn calculate_indentation(node: Option, newline: bool) -> usize { "if_let_expression", // "match_expression", // "match_arm", - + "tuple_expression", + "array_expression", // indent_except_first_scopes "use_list", "block", @@ -253,6 +254,15 @@ pub fn change(document: &Document, changes: I) -> Self where I: IntoIterator + ExactSizeIterator, { + [ + 1, + 2, + 3, + ]; + ( + 1, + 2 + ); true } ",