Skip to content

Commit

Permalink
update vim ycm installation instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed Mar 29, 2021
1 parent 44758c8 commit add85de
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions manual.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -255,22 +255,10 @@ 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]

rust-analyzer is the default in ycm, it should work out of the box.

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']
\ }
\ ]
----

==== ALE

Expand Down

0 comments on commit add85de

Please sign in to comment.