aboutsummaryrefslogtreecommitdiff
path: root/docs/user/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/user/README.md')
-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