Skip to content

Commit d771e3a

Browse files
bors[bot]AmjadHD
andauthored
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 <[email protected]>
2 parents b0e293b + 3475a30 commit d771e3a

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
@@ -361,22 +361,19 @@ if executable('rust-analyzer')
361361
endif
362362
----
363363

364-
=== Sublime Text 3
364+
=== Sublime Text
365365

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

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

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

379-
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.
376+
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.
380377

381378
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.
382379

0 commit comments

Comments
 (0)