aboutsummaryrefslogtreecommitdiff
path: root/docs/user/README.md
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-09 18:19:23 +0000
committerVeetaha <[email protected]>2020-02-09 18:19:23 +0000
commite18661f62b884ba970f8b3267400bf4320c7b118 (patch)
treede826bb15d8e336f2e9098d624b1d1d6e0eb14bb /docs/user/README.md
parent1b9b13b4b4a75b5531c3f046ce6bf72d681f2732 (diff)
docs: Freshen docs for prebuilt binaries and raLspServer setting
Diffstat (limited to 'docs/user/README.md')
-rw-r--r--docs/user/README.md17
1 files changed, 14 insertions, 3 deletions
diff --git a/docs/user/README.md b/docs/user/README.md
index 3da30a193..1e7d516c5 100644
--- a/docs/user/README.md
+++ b/docs/user/README.md
@@ -57,7 +57,7 @@ For updates you need to remove installed binary
57rm -rf ${HOME}/.config/Code/User/globalStorage/matklad.rust-analyzer 57rm -rf ${HOME}/.config/Code/User/globalStorage/matklad.rust-analyzer
58``` 58```
59 59
60`"Donwload latest language server"` command for VSCode and automatic updates detection is currently WIP. 60`"Download latest language server"` command for VSCode and automatic updates detection is currently WIP.
61 61
62 62
63### Installation from sources 63### Installation from sources
@@ -71,6 +71,16 @@ $ cd rust-analyzer
71$ cargo xtask install 71$ cargo xtask install
72``` 72```
73 73
74After that you need to amend your `settings.json` file to explicitly specify the
75path to `ra_lsp_server` that you've just built.
76```json
77{
78 "rust-analyzer.raLspServerPath": "ra_lsp_server"
79}
80```
81This should work on all platforms, otherwise if installed `ra_lsp_server` is not available through your `$PATH` then see how to configure it [here](#setting-up-the-PATH-variable).
82
83
74The automatic installation is expected to *just work* for common cases, if it 84The automatic installation is expected to *just work* for common cases, if it
75doesn't, report bugs! 85doesn't, report bugs!
76 86
@@ -127,7 +137,7 @@ host.
127 As an example, [Pale Fire](https://github.com/matklad/pale-fire/) color scheme tweaks rust colors. 137 As an example, [Pale Fire](https://github.com/matklad/pale-fire/) color scheme tweaks rust colors.
128* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts the 138* `rust-analyzer.enableEnhancedTyping`: by default, rust-analyzer intercepts the
129 `Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin. 139 `Enter` key to make it easier to continue comments. Note that it may conflict with VIM emulation plugin.
130* `rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable 140* `rust-analyzer.raLspServerPath`: path to `ra_lsp_server` executable, when absent or `null` defaults to prebuilt binary path
131* `rust-analyzer.enableCargoWatchOnStartup`: prompt to install & enable `cargo 141* `rust-analyzer.enableCargoWatchOnStartup`: prompt to install & enable `cargo
132 watch` for live error highlighting (note, this **does not** use rust-analyzer) 142 watch` for live error highlighting (note, this **does not** use rust-analyzer)
133* `rust-analyzer.excludeGlobs`: a list of glob-patterns for exclusion (see globset [docs](https://docs.rs/globset) for syntax). 143* `rust-analyzer.excludeGlobs`: a list of glob-patterns for exclusion (see globset [docs](https://docs.rs/globset) for syntax).
@@ -232,7 +242,8 @@ Installation:
232 242
233* 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) 243* 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)
234 244
235### Setting up the `PATH` variable 245
246### Setting up the `PATH` variable <!-- Update links to this header when changing it! -->
236 247
237On Unix systems, `rustup` adds `~/.cargo/bin` to `PATH` by modifying the shell's 248On Unix systems, `rustup` adds `~/.cargo/bin` to `PATH` by modifying the shell's
238startup file. Depending on your configuration, your Desktop Environment might not 249startup file. Depending on your configuration, your Desktop Environment might not