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
@@ -361,22 +361,19 @@ if executable('rust-analyzer')
361
361
endif
362
362
----
363
363
364
-
=== Sublime Text 3
364
+
=== Sublime Text
365
365
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].
370
368
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`).
375
370
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`.
378
375
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.
380
377
381
378
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