Merge #4098
4098: Add YouCompleteMe as a LSP option for vim/neovim r=matklad a=weihanglo As YouCompleteMe supports [arbitrary LSP implementation](https://ycm-core.github.io/YouCompleteMe/#plugging-an-arbitrary-lsp-server), it could be added to the list of vim LSP implementation. It works like a charm. Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
This commit is contained in:
commit
1101e74b10
@ -177,6 +177,26 @@ let g:LanguageClient_serverCommands = {
|
||||
\ }
|
||||
----
|
||||
|
||||
==== YouCompleteMe
|
||||
|
||||
1. Install YouCompleteMe by following the instructions
|
||||
https://ycm-core.github.io/YouCompleteMe/#rust-semantic-completion[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']
|
||||
\ }
|
||||
\ ]
|
||||
----
|
||||
|
||||
==== nvim-lsp
|
||||
|
||||
NeoVim 0.5 (not yet released) has built-in language server support.
|
||||
|
Loading…
x
Reference in New Issue
Block a user