From 4bc4cd71b201f2e5e455c9c7d14bb21179c28ce0 Mon Sep 17 00:00:00 2001 From: Luke Jones Date: Sat, 5 Oct 2019 10:36:30 +1300 Subject: Add alternative setup instruction for vim/neovim Provide another option hint for vim/neovim users who do not want to run nodejs --- docs/user/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') diff --git a/docs/user/README.md b/docs/user/README.md index 9d03cad1c..44d6ee739 100644 --- a/docs/user/README.md +++ b/docs/user/README.md @@ -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-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 -- cgit v1.2.3