about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crates/ide_assists/src/handlers/auto_import.rs4
-rw-r--r--docs/user/manual.adoc2
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide_assists/src/handlers/auto_import.rs b/crates/ide_assists/src/handlers/auto_import.rs
index 5a2809a1cf1..874563c6f78 100644
--- a/crates/ide_assists/src/handlers/auto_import.rs
+++ b/crates/ide_assists/src/handlers/auto_import.rs
@@ -54,9 +54,9 @@ use crate::{AssistContext, AssistId, AssistKind, Assists, GroupLabel};
 // The style of imports in the same crate is configurable through the `importPrefix` setting.
 // It has the following configurations:
 //
-// - `by_crate`: This setting will force paths to be always absolute, starting with the `crate`
+// - `crate`: This setting will force paths to be always absolute, starting with the `crate`
 //  prefix, unless the item is defined outside of the current crate.
-// - `by_self`: This setting will force paths that are relative to the current module to always
+// - `self`: This setting will force paths that are relative to the current module to always
 //  start with `self`. This will result in paths that always start with either `crate`, `self`,
 //  `super` or an extern crate identifier.
 // - `plain`: This setting does not impose any restrictions in imports.
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc
index ba28f68029b..27d5d96159d 100644
--- a/docs/user/manual.adoc
+++ b/docs/user/manual.adoc
@@ -310,7 +310,7 @@ nvim_lsp.rust_analyzer.setup({
         ["rust-analyzer"] = {
             assist = {
                 importGranularity = "module",
-                importPrefix = "by_self",
+                importPrefix = "self",
             },
             cargo = {
                 loadOutDirsFromCheck = true