From 3e980fcf6b025aba0e0122e7950d5b33e37c5597 Mon Sep 17 00:00:00 2001 From: Mathieu Amiot Date: Fri, 19 Apr 2019 11:50:01 +0200 Subject: Added instructions for Sublime Text 3 setup --- docs/user/README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'docs') diff --git a/docs/user/README.md b/docs/user/README.md index 33dd4f995..0196bf45f 100644 --- a/docs/user/README.md +++ b/docs/user/README.md @@ -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 Ctrl+Shift+P +* 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) -- cgit v1.2.3