mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-10 14:46:04 +03:00
Indent array and tuple lists too.
This commit is contained in:
parent
ccdebb99b5
commit
5954dafdbc
@ -55,7 +55,8 @@ fn calculate_indentation(node: Option<Node>, 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<I>(document: &Document, changes: I) -> Self
|
||||
where
|
||||
I: IntoIterator<Item = Change> + ExactSizeIterator,
|
||||
{
|
||||
[
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
];
|
||||
(
|
||||
1,
|
||||
2
|
||||
);
|
||||
true
|
||||
}
|
||||
",
|
||||
|
Loading…
Reference in New Issue
Block a user