1330: Add Vim and NeoVim setup section r=oblitum a=oblitum



Co-authored-by: Francisco Lopes <francisco@oblita.com>
This commit is contained in:
bors[bot] 2019-05-26 05:34:02 +00:00
commit 4f4e50db90

View file

@ -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: