about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-02-21 10:29:16 +0000
committerGitHub <noreply@github.com>2022-02-21 10:29:16 +0000
commitd771e3a7e939e0ed3ac65e666a4e0d4ffc9af6f0 (patch)
treec632515d5366936190696dfb8001499d7d1e8581
parentb0e293bf696f31dc3281c027a194c1e3e08a24ef (diff)
parent3475a30080968b2924643d0717c52b252f14e965 (diff)
downloadrust-d771e3a7e939e0ed3ac65e666a4e0d4ffc9af6f0.tar.gz
rust-d771e3a7e939e0ed3ac65e666a4e0d4ffc9af6f0.zip
Merge #11142
11142: Updated the Sublime Text section r=Veykril a=AmjadHD

rust-analyzer/rust-analyzer.github.io#160

Co-authored-by: Amjad Ben Hedhili <amjadhedhili@outlook.com>
-rw-r--r--docs/user/manual.adoc21
1 files changed, 9 insertions, 12 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc
index 5f725f865aa..2b1eae1e2a4 100644
--- a/docs/user/manual.adoc
+++ b/docs/user/manual.adoc
@@ -361,22 +361,19 @@ if executable('rust-analyzer')
 endif
 ----
 
-=== Sublime Text 3
+=== Sublime Text
 
-Prerequisites: You have installed the <<rust-analyzer-language-server-binary,`rust-analyzer` binary>>.
-
-You also need the `LSP` package.
-To install it:
+==== Sublime Text 4:
+* Follow the instructions in link:https://github.com/sublimelsp/LSP-rust-analyzer[LSP-rust-analyzer].
 
-1. If you've never installed a Sublime Text package, install Package Control:
-   * Open the command palette (Win/Linux: `ctrl+shift+p`, Mac: `cmd+shift+p`)
-   * Type `Install Package Control`, press enter
-2. In the command palette, run `Package control: Install package`, and in the list that pops up, type `LSP` and press enter.
+NOTE: Install link:https://packagecontrol.io/packages/LSP-file-watcher-chokidar[LSP-file-watcher-chokidar] to enable file watching (`workspace/didChangeWatchedFiles`).
 
-Finally, with your Rust project open, in the command palette, run `LSP: Enable Language Server In Project` or `LSP: Enable Language Server Globally`, then select `rust-analyzer` in the list that pops up to enable the rust-analyzer LSP.
-The latter means that rust-analyzer is enabled by default in Rust projects.
+==== Sublime Text 3:
+* Install the <<rust-analyzer-language-server-binary,`rust-analyzer` binary>>.
+* Install the link:https://packagecontrol.io/packages/LSP[LSP package].
+* From the command palette, run `LSP: Enable Language Server Globally` and select `rust-analyzer`.
 
-If it worked, you should see "rust-analyzer, Line X, Column Y" on the left side of the bottom bar, and after waiting a bit, functionality like tooltips on hovering over variables should become available.
+If it worked, you should see "rust-analyzer, Line X, Column Y" on the left side of the status bar, and after waiting a bit, functionalities like tooltips on hovering over variables should become available.
 
 If you get an error saying `No such file or directory: 'rust-analyzer'`, see the <<rust-analyzer-language-server-binary,`rust-analyzer` binary>> section on installing the language server binary.