mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 01:38:13 +00:00
Merge #1330
1330: Add Vim and NeoVim setup section r=oblitum a=oblitum Co-authored-by: Francisco Lopes <francisco@oblita.com>
This commit is contained in:
commit
4f4e50db90
1 changed files with 19 additions and 0 deletions
|
@ -89,6 +89,25 @@ to load path and require it in `init.el`
|
|||
* (Optionally) bind commands like `rust-analyzer-join-lines` or `rust-analyzer-extend-selection` to keys
|
||||
|
||||
|
||||
## Vim and NeoVim
|
||||
|
||||
* Install coc.nvim by following the instructions at [coc.nvim]
|
||||
* Add rust analyzer using: [coc.nvim wiki][coc-wiki]
|
||||
|
||||
```jsonc
|
||||
"languageserver": {
|
||||
"rust": {
|
||||
"command": "ra_lsp_server",
|
||||
"filetypes": ["rust"],
|
||||
"rootPatterns": ["Cargo.toml"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
[coc.nvim]: https://github.com/neoclide/coc.nvim
|
||||
[coc-wiki]: https://github.com/neoclide/coc.nvim/wiki/Language-servers#rust
|
||||
|
||||
|
||||
## Sublime Text 3
|
||||
|
||||
Prequisites:
|
||||
|
|
Loading…
Reference in a new issue