mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Add alternative setup instruction for vim/neovim
Provide another option hint for vim/neovim users who do not want to run nodejs
This commit is contained in:
parent
7d1bb35fb1
commit
4bc4cd71b2
1 changed files with 16 additions and 0 deletions
|
@ -116,6 +116,22 @@ to load path and require it in `init.el`
|
||||||
[coc-vim-conf]: https://github.com/neoclide/coc.nvim/#example-vim-configuration
|
[coc-vim-conf]: https://github.com/neoclide/coc.nvim/#example-vim-configuration
|
||||||
[coc-rust-analyzer]: https://github.com/fannheyward/coc-rust-analyzer
|
[coc-rust-analyzer]: https://github.com/fannheyward/coc-rust-analyzer
|
||||||
|
|
||||||
|
## Vim and NeoVim Alternative
|
||||||
|
|
||||||
|
* Install LanguageClient-neovim by following the instructions [here][lang-client-neovim]
|
||||||
|
- No extra run-time is required as this server is written in Rust
|
||||||
|
- The github project wiki has extra tips on configuration
|
||||||
|
|
||||||
|
* Configure by adding this to your vim/neovim config file (replacing the existing rust specific line if it exists):
|
||||||
|
|
||||||
|
```
|
||||||
|
let g:LanguageClient_serverCommands = {
|
||||||
|
\ 'rust': ['ra_lsp_server'],
|
||||||
|
\ }
|
||||||
|
```
|
||||||
|
|
||||||
|
[lang-client-neovim]: https://github.com/autozimu/LanguageClient-neovim
|
||||||
|
|
||||||
|
|
||||||
## Sublime Text 3
|
## Sublime Text 3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue