aboutsummaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-29 21:18:51 +0100
committerGitHub <[email protected]>2021-03-29 21:18:51 +0100
commit9bae3ecdffed957b50bb35e6e6a84e8d6b410032 (patch)
tree28901fe84d92ab29fb24ca9a86032842f886dfa1 /docs/user
parent35efbf566184fc55a063e7fec7b9a30366e94c95 (diff)
parent14a1f0ce46841e75db5f4f245f1ffe5355ce65fe (diff)
Merge #8246
8246: update vim ycm installation instruction r=Veykril a=PSeitz Fixes https://github.com/rust-analyzer/rust-analyzer.github.io/pull/97 Co-authored-by: PSeitz <[email protected]>
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/manual.adoc19
1 files changed, 3 insertions, 16 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc
index b1beeb883..e74b287fb 100644
--- a/docs/user/manual.adoc
+++ b/docs/user/manual.adoc
@@ -254,23 +254,10 @@ let g:LanguageClient_serverCommands = {
254 254
255==== YouCompleteMe 255==== YouCompleteMe
256 256
2571. Install YouCompleteMe by following the instructions 257Install YouCompleteMe by following the instructions
258 https://github.com/ycm-core/lsp-examples#rust-rust-analyzer[here] 258 https://github.com/ycm-core/YouCompleteMe#installation[here].
259 259
2602. Configure by adding this to your vim/neovim config file (replacing the existing Rust-specific line if it exists): 260rust-analyzer is the default in ycm, it should work out of the box.
261+
262[source,vim]
263----
264let g:ycm_language_server =
265\ [
266\ {
267\ 'name': 'rust',
268\ 'cmdline': ['rust-analyzer'],
269\ 'filetypes': ['rust'],
270\ 'project_root_files': ['Cargo.toml']
271\ }
272\ ]
273----
274 261
275==== ALE 262==== ALE
276 263