diff options
author | Mathieu Amiot <[email protected]> | 2019-04-19 10:50:01 +0100 |
---|---|---|
committer | Mathieu Amiot <[email protected]> | 2019-04-19 10:50:01 +0100 |
commit | 3e980fcf6b025aba0e0122e7950d5b33e37c5597 (patch) | |
tree | 7bea2052ac39d423e3bdfa8df99530cfc3d87000 /docs | |
parent | ab0a96586fd54858106cb6ac112d61eb657426f6 (diff) |
Added instructions for Sublime Text 3 setup
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/README.md | 27 |
1 files changed, 27 insertions, 0 deletions
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: | |||
78 | to load path and require it in `init.el` | 78 | to load path and require it in `init.el` |
79 | * run `lsp` in a rust buffer | 79 | * run `lsp` in a rust buffer |
80 | * (Optionally) bind commands like `rust-analyzer-join-lines` or `rust-analyzer-extend-selection` to keys | 80 | * (Optionally) bind commands like `rust-analyzer-join-lines` or `rust-analyzer-extend-selection` to keys |
81 | |||
82 | |||
83 | ## Sublime Text 3 | ||
84 | |||
85 | Prequisites: | ||
86 | |||
87 | `LSP` package. | ||
88 | |||
89 | Installation: | ||
90 | |||
91 | * Invoke the command palette with <kbd>Ctrl+Shift+P</kbd> | ||
92 | * Type `LSP Settings` to open the LSP preferences editor | ||
93 | * Add the following LSP client definition to your settings: | ||
94 | |||
95 | ```json | ||
96 | "rust-analyzer": { | ||
97 | "command": ["rustup", "run", "stable", "ra_lsp_server"], | ||
98 | "languageId": "rust", | ||
99 | "scopes": ["source.rust"], | ||
100 | "syntaxes": [ | ||
101 | "Packages/Rust/Rust.sublime-syntax", | ||
102 | "Packages/Rust Enhanced/RustEnhanced.sublime-syntax" | ||
103 | ] | ||
104 | } | ||
105 | ``` | ||
106 | |||
107 | * 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) | ||