Skip to content

Commit 3475a30

Browse files
authored
Update manual.adoc
1 parent 355a4bd commit 3475a30

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

docs/user/manual.adoc

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -376,22 +376,19 @@ if executable('rust-analyzer')
376376
endif
377377
----
378378

379-
=== Sublime Text 3
379+
=== Sublime Text
380380

381-
Prerequisites: You have installed the <<rust-analyzer-language-server-binary,`rust-analyzer` binary>>.
382-
383-
You also need the `LSP` package.
384-
To install it:
381+
==== Sublime Text 4:
382+
* Follow the instructions in link:https://github.com/sublimelsp/LSP-rust-analyzer[LSP-rust-analyzer].
385383

386-
1. If you've never installed a Sublime Text package, install Package Control:
387-
* Open the command palette (Win/Linux: `ctrl+shift+p`, Mac: `cmd+shift+p`)
388-
* Type `Install Package Control`, press enter
389-
2. In the command palette, run `Package control: Install package`, and in the list that pops up, type `LSP` and press enter.
384+
NOTE: Install link:https://packagecontrol.io/packages/LSP-file-watcher-chokidar[LSP-file-watcher-chokidar] to enable file watching (`workspace/didChangeWatchedFiles`).
390385

391-
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.
392-
The latter means that rust-analyzer is enabled by default in Rust projects.
386+
==== Sublime Text 3:
387+
* Install the <<rust-analyzer-language-server-binary,`rust-analyzer` binary>>.
388+
* Install the link:https://packagecontrol.io/packages/LSP[LSP package].
389+
* From the command palette, run `LSP: Enable Language Server Globally` and select `rust-analyzer`.
393390

394-
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.
391+
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.
395392

396393
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.
397394

0 commit comments

Comments
 (0)