You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/manual.adoc
+9-12Lines changed: 9 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -376,22 +376,19 @@ if executable('rust-analyzer')
376
376
endif
377
377
----
378
378
379
-
=== Sublime Text 3
379
+
=== Sublime Text
380
380
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].
385
383
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`).
390
385
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`.
393
390
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.
395
392
396
393
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.
0 commit comments