update vim ycm installation instruction

This commit is contained in:
PSeitz 2021-03-29 21:31:29 +02:00 committed by GitHub
parent 7b9e2a2641
commit 3153a80261
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,22 +255,9 @@ let g:LanguageClient_serverCommands = {
==== YouCompleteMe
1. Install YouCompleteMe by following the instructions
https://github.com/ycm-core/lsp-examples#rust-rust-analyzer[here]
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