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 <PSeitz@users.noreply.github.com>
This commit is contained in:
commit
9bae3ecdff
@ -254,23 +254,10 @@ let g:LanguageClient_serverCommands = {
|
|||||||
|
|
||||||
==== YouCompleteMe
|
==== YouCompleteMe
|
||||||
|
|
||||||
1. Install YouCompleteMe by following the instructions
|
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):
|
rust-analyzer is the default in ycm, it should work out of the box.
|
||||||
+
|
|
||||||
[source,vim]
|
|
||||||
----
|
|
||||||
let g:ycm_language_server =
|
|
||||||
\ [
|
|
||||||
\ {
|
|
||||||
\ 'name': 'rust',
|
|
||||||
\ 'cmdline': ['rust-analyzer'],
|
|
||||||
\ 'filetypes': ['rust'],
|
|
||||||
\ 'project_root_files': ['Cargo.toml']
|
|
||||||
\ }
|
|
||||||
\ ]
|
|
||||||
----
|
|
||||||
|
|
||||||
==== ALE
|
==== ALE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user