aboutsummaryrefslogtreecommitdiff
path: root/docs/user
diff options
context:
space:
mode:
authorPSeitz <[email protected]>2021-03-29 20:31:29 +0100
committerGitHub <[email protected]>2021-03-29 20:31:29 +0100
commit3153a80261877539c11600b09dbb2cb48b670ebc (patch)
tree3597e4db1e4324a071ba56916f21c1ccbbef91b2 /docs/user
parent7b9e2a26415d484dd5d3a487981b82a56426cf01 (diff)
update vim ycm installation instruction
Diffstat (limited to 'docs/user')
-rw-r--r--docs/user/manual.adoc17
1 files changed, 2 insertions, 15 deletions
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc
index b1beeb883..a80fdc364 100644
--- a/docs/user/manual.adoc
+++ b/docs/user/manual.adoc
@@ -255,22 +255,9 @@ let g:LanguageClient_serverCommands = {
255==== YouCompleteMe 255==== YouCompleteMe
256 256
2571. Install YouCompleteMe by following the instructions 2571. Install YouCompleteMe by following the instructions
258 https://github.com/ycm-core/lsp-examples#rust-rust-analyzer[here] 258 https://github.com/ycm-core/YouCompleteMe#installation[here]
259 259
2602. Configure by adding this to your vim/neovim config file (replacing the existing Rust-specific line if it exists): 260rust-analyzer is the default in ycm, it should work out of the box.
261+
262[source,vim]
263----
264let g:ycm_language_server =
265\ [
266\ {
267\ 'name': 'rust',
268\ 'cmdline': ['rust-analyzer'],
269\ 'filetypes': ['rust'],
270\ 'project_root_files': ['Cargo.toml']
271\ }
272\ ]
273----
274 261
275==== ALE 262==== ALE
276 263