mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
Add Vim and NeoVim setup section
This commit is contained in:
parent
91bd783273
commit
da28dccf62
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