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 <PSeitz@users.noreply.github.com>
This commit is contained in:
bors[bot] 2021-03-29 20:18:51 +00:00 committed by GitHub
commit 9bae3ecdff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,23 +254,10 @@ let g:LanguageClient_serverCommands = {
==== YouCompleteMe
1. Install YouCompleteMe by following the instructions
https://github.com/ycm-core/lsp-examples#rust-rust-analyzer[here]
Install YouCompleteMe by following the instructions
https://github.com/ycm-core/YouCompleteMe#installation[here].
2. Configure by adding this to your vim/neovim config file (replacing the existing Rust-specific line if it exists):
+
[source,vim]
----
let g:ycm_language_server =
\ [
\ {
\ 'name': 'rust',
\ 'cmdline': ['rust-analyzer'],
\ 'filetypes': ['rust'],
\ 'project_root_files': ['Cargo.toml']
\ }
\ ]
----
rust-analyzer is the default in ycm, it should work out of the box.
==== ALE