aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/user/readme.adoc20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc
index 13ab2acc2..ce5704836 100644
--- a/docs/user/readme.adoc
+++ b/docs/user/readme.adoc
@@ -177,6 +177,26 @@ let g:LanguageClient_serverCommands = {
177\ } 177\ }
178---- 178----
179 179
180==== YouCompleteMe
181
1821. Install YouCompleteMe by following the instructions
183 https://ycm-core.github.io/YouCompleteMe/#rust-semantic-completion[here]
184
1852. Configure by adding this to your vim/neovim config file (replacing the existing Rust-specific line if it exists):
186+
187[source,vim]
188----
189let g:ycm_language_server =
190\ [
191\ {
192\ 'name': 'rust',
193\ 'cmdline': ['rust-analyzer'],
194\ 'filetypes': ['rust'],
195\ 'project_root_files': ['Cargo.toml']
196\ }
197\ ]
198----
199
180==== nvim-lsp 200==== nvim-lsp
181 201
182NeoVim 0.5 (not yet released) has built-in language server support. 202NeoVim 0.5 (not yet released) has built-in language server support.