From f24007b30f9655b2d5e74ccf8164fafed8b54d77 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sat, 24 Jul 2021 15:31:03 +0900 Subject: Improve rust indentation queries if/if let are already handled by block, and keeping these scopes would indent else blocks one level too far. --- runtime/queries/rust/indents.toml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'runtime') diff --git a/runtime/queries/rust/indents.toml b/runtime/queries/rust/indents.toml index d0115cb5..6609a756 100644 --- a/runtime/queries/rust/indents.toml +++ b/runtime/queries/rust/indents.toml @@ -1,11 +1,4 @@ indent = [ - "while_expression", - "for_expression", - "loop_expression", - "if_expression", - "if_let_expression", - "tuple_expression", - "array_expression", "use_list", "block", "match_block", @@ -19,6 +12,8 @@ indent = [ "enum_variant_list", "binary_expression", "field_expression", + "tuple_expression", + "array_expression", "where_clause", "macro_invocation" ] -- cgit v1.2.3-70-g09d2 From 29cefa1be860e38a11347f0798159e0f4ddfe173 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sat, 24 Jul 2021 15:33:55 +0900 Subject: rust: Indent multi line call expressions one level deeper --- runtime/queries/rust/indents.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime') diff --git a/runtime/queries/rust/indents.toml b/runtime/queries/rust/indents.toml index 6609a756..3900f0b9 100644 --- a/runtime/queries/rust/indents.toml +++ b/runtime/queries/rust/indents.toml @@ -10,6 +10,7 @@ indent = [ "struct_pattern", "tuple_pattern", "enum_variant_list", + "call_expression", "binary_expression", "field_expression", "tuple_expression", -- cgit v1.2.3-70-g09d2 From a630fb5d2022b264bcac34317bbadd0973bd57d4 Mon Sep 17 00:00:00 2001 From: gbaranski Date: Mon, 26 Jul 2021 16:04:28 +0200 Subject: fix: change primary cursor color in bogster theme --- runtime/themes/bogster.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime') diff --git a/runtime/themes/bogster.toml b/runtime/themes/bogster.toml index fecbd605..37b9adbf 100644 --- a/runtime/themes/bogster.toml +++ b/runtime/themes/bogster.toml @@ -42,6 +42,7 @@ "ui.selection" = { bg = "#313f4e" } # "ui.cursor.match" # TODO might want to override this because dimmed is not widely supported +"ui.cursor.primary" = { fg = "#ABB2BF", modifiers = ["reversed"] } "ui.menu.selected" = { fg = "#e5ded6", bg = "#313f4e" } "warning" = "#dc7759" -- cgit v1.2.3-70-g09d2