diff options
author | Francisco Lopes <[email protected]> | 2019-05-25 20:24:47 +0100 |
---|---|---|
committer | Francisco Lopes <[email protected]> | 2019-05-25 22:55:59 +0100 |
commit | da28dccf6262c7e820f56f265877bbb9e6f95216 (patch) | |
tree | b27273bbb81b165f3e66ec2c3815d45cae79d07a /docs/user | |
parent | 91bd783273477d5709ea4bb891355e9aa9a7cdfe (diff) |
Add Vim and NeoVim setup section
Diffstat (limited to 'docs/user')
-rw-r--r-- | docs/user/README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/user/README.md b/docs/user/README.md index affb96939..47fc840f7 100644 --- a/docs/user/README.md +++ b/docs/user/README.md | |||
@@ -89,6 +89,25 @@ to load path and require it in `init.el` | |||
89 | * (Optionally) bind commands like `rust-analyzer-join-lines` or `rust-analyzer-extend-selection` to keys | 89 | * (Optionally) bind commands like `rust-analyzer-join-lines` or `rust-analyzer-extend-selection` to keys |
90 | 90 | ||
91 | 91 | ||
92 | ## Vim and NeoVim | ||
93 | |||
94 | * Install coc.nvim by following the instructions at [coc.nvim] | ||
95 | * Add rust analyzer using: [coc.nvim wiki][coc-wiki] | ||
96 | |||
97 | ```jsonc | ||
98 | "languageserver": { | ||
99 | "rust": { | ||
100 | "command": "ra_lsp_server", | ||
101 | "filetypes": ["rust"], | ||
102 | "rootPatterns": ["Cargo.toml"] | ||
103 | } | ||
104 | } | ||
105 | ``` | ||
106 | |||
107 | [coc.nvim]: https://github.com/neoclide/coc.nvim | ||
108 | [coc-wiki]: https://github.com/neoclide/coc.nvim/wiki/Language-servers#rust | ||
109 | |||
110 | |||
92 | ## Sublime Text 3 | 111 | ## Sublime Text 3 |
93 | 112 | ||
94 | Prequisites: | 113 | Prequisites: |