mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
update vim ycm installation instruction
This commit is contained in:
parent
7b9e2a2641
commit
3153a80261
1 changed files with 2 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue