Merge #1167
1167: Added instructions for Sublime Text 3 setup r=matklad a=OtaK Hey all! I'm a Sublime Text 3 user and I wrote instructions to make `rust-analyzer` work with it. So far works flawlessly, barring the missing features, which is fine (and not the point of this PR). Great work <3 Thanks, Mathieu Co-authored-by: Mathieu Amiot <amiot.mathieu@gmail.com>
This commit is contained in:
commit
153db2467f
1 changed files with 27 additions and 0 deletions
|
|
@ -78,3 +78,30 @@ Installation:
|
|||
to load path and require it in `init.el`
|
||||
* run `lsp` in a rust buffer
|
||||
* (Optionally) bind commands like `rust-analyzer-join-lines` or `rust-analyzer-extend-selection` to keys
|
||||
|
||||
|
||||
## Sublime Text 3
|
||||
|
||||
Prequisites:
|
||||
|
||||
`LSP` package.
|
||||
|
||||
Installation:
|
||||
|
||||
* Invoke the command palette with <kbd>Ctrl+Shift+P</kbd>
|
||||
* Type `LSP Settings` to open the LSP preferences editor
|
||||
* Add the following LSP client definition to your settings:
|
||||
|
||||
```json
|
||||
"rust-analyzer": {
|
||||
"command": ["rustup", "run", "stable", "ra_lsp_server"],
|
||||
"languageId": "rust",
|
||||
"scopes": ["source.rust"],
|
||||
"syntaxes": [
|
||||
"Packages/Rust/Rust.sublime-syntax",
|
||||
"Packages/Rust Enhanced/RustEnhanced.sublime-syntax"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
* You can now invoke the command palette and type LSP enable to locally/globally enable the rust-analyzer LSP (type LSP enable, then choose either locally or globally, then select rust-analyzer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue