aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-09-06 17:34:38 +0100
committerGitHub <[email protected]>2019-09-06 17:34:38 +0100
commite365236bfb2d24c5e8b04a1eeec5ee4ccb4a3715 (patch)
tree48585f13ae3772ca0653cd50a82a4383ea587f5d /docs
parent1acd9d5540bf755e87173fe16a803cfe8b2bb500 (diff)
parent31017d6dc466082573457009c346776fb01049fc (diff)
Merge #1755
1755: feat(docs): add coc-rust-analyzer r=JeanMertz a=fannheyward Co-authored-by: Heyward Fann <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r--docs/user/README.md31
1 files changed, 4 insertions, 27 deletions
diff --git a/docs/user/README.md b/docs/user/README.md
index 56c2d9eb5..c11e0fcb6 100644
--- a/docs/user/README.md
+++ b/docs/user/README.md
@@ -106,35 +106,12 @@ to load path and require it in `init.el`
106 - Note that if you use a plugin manager other than `vim-plug`, you may need to manually 106 - Note that if you use a plugin manager other than `vim-plug`, you may need to manually
107 checkout the `release` branch wherever your plugin manager cloned it. Otherwise you will 107 checkout the `release` branch wherever your plugin manager cloned it. Otherwise you will
108 get errors about a missing javascript file. 108 get errors about a missing javascript file.
109* Add rust analyzer using: [coc.nvim wiki][coc-wiki] 109* Run `:CocInstall coc-rust-analyzer` to install `coc-rust-analyzer`, this extension already implemented _almost_ all features supported in VSCode extension:
110 - Use `:CocConfig` in command mode to edit the config file. 110 - same configurations as VSCode extension, `rust-analyzer.raLspServerPath`, `rust-analyzer.enableCargoWatchOnStartup` etc.
111 111 - same commands too, `rust-analyzer.analyzerStatus`, `rust-analyzer.startCargoWatch` etc.
112```jsonc 112 - highlighting and inlay_hints is not works by now
113 "languageserver": {
114 "rust": {
115 "command": "ra_lsp_server",
116 "filetypes": ["rust"],
117 "rootPatterns": ["Cargo.toml"]
118 }
119 }
120```
121
122For those not familiar with js, the whole file should be enclosed in `{` and `}`, with all of your config options in between. So for example, if rust-analyzer was your only language server, you could do the following:
123
124```jsonc
125{
126 "languageserver": {
127 "rust": {
128 "command": "ra_lsp_server",
129 "filetypes": ["rust"],
130 "rootPatterns": ["Cargo.toml"]
131 }
132 }
133}
134```
135 113
136[coc.nvim]: https://github.com/neoclide/coc.nvim 114[coc.nvim]: https://github.com/neoclide/coc.nvim
137[coc-wiki]: https://github.com/neoclide/coc.nvim/wiki/Language-servers#rust
138[coc-vim-conf]: https://github.com/neoclide/coc.nvim/#example-vim-configuration 115[coc-vim-conf]: https://github.com/neoclide/coc.nvim/#example-vim-configuration
139 116
140 117