Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/rust-analyzer/src/config.rs2
-rw-r--r--docs/book/src/configuration_generated.md2
-rw-r--r--editors/code/package.json2
3 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index 32560bb26f..76a4a26af6 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -344,7 +344,7 @@ config_data! {
/// - typing `{` in a use item adds a closing `}` in the right place
/// - typing `>` to complete a return type `->` will insert a whitespace after it
/// - typing `<` in a path or type position inserts a closing `>` after the path or type.
- typing_triggerChars: Option<String> = Some("=.+".to_owned()),
+ typing_triggerChars: Option<String> = Some("=.".to_owned()),
/// Enables automatic discovery of projects using [`DiscoverWorkspaceConfig::command`].
diff --git a/docs/book/src/configuration_generated.md b/docs/book/src/configuration_generated.md
index 119b60725a..54a624d25a 100644
--- a/docs/book/src/configuration_generated.md
+++ b/docs/book/src/configuration_generated.md
@@ -1417,7 +1417,7 @@ Show documentation.
## rust-analyzer.typing.triggerChars {#typing.triggerChars}
-Default: `"=.+"`
+Default: `"=."`
Specify the characters allowed to invoke special on typing triggers.
- typing `=` after `let` tries to smartly add `;` if `=` is followed by an existing expression
diff --git a/editors/code/package.json b/editors/code/package.json
index acac54e53a..fb41225ca0 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -2846,7 +2846,7 @@
"properties": {
"rust-analyzer.typing.triggerChars": {
"markdownDescription": "Specify the characters allowed to invoke special on typing triggers.\n- typing `=` after `let` tries to smartly add `;` if `=` is followed by an existing expression\n- typing `=` between two expressions adds `;` when in statement position\n- typing `=` to turn an assignment into an equality comparison removes `;` when in expression position\n- typing `.` in a chain method call auto-indents\n- typing `{` or `(` in front of an expression inserts a closing `}` or `)` after the expression\n- typing `{` in a use item adds a closing `}` in the right place\n- typing `>` to complete a return type `->` will insert a whitespace after it\n- typing `<` in a path or type position inserts a closing `>` after the path or type.",
- "default": "=.+",
+ "default": "=.",
"type": [
"null",
"string"