fannheyward / coc-rust-analyzer

rust-analyzer extension for coc.nvim
MIT License
1.13k stars 40 forks source link

Should get rust-analyzer from OS? #1034

Closed tmpm697 closed 2 years ago

tmpm697 commented 2 years ago

What's the output of :CocInfo

## versions                                                                                                                                                                                                          
vim version: NVIM v0.7.2                                                                                                                                                                                             
node version: v16.16.0                                                                                                                                                                                               
coc.nvim version: 0.0.82-cab0d1bf 2022-08-16 12:53:25 +0800                                                                                                                                                          
coc.nvim directory: /home/user/.vim-plugin/coc.nvim                                                                                                                                              
term: xterm-256color                                                                                                                                                                                                 
platform: linux                                                                                                                                                                                                      
## Log of coc.nvim                                                                                                                                                                                                   
2022-08-17T01:01:14.317 INFO (pid:782918) [plugin] - coc.nvim initialized with node: v16.16.0 after 208ms                                                                                                           
2022-08-17T01:01:16.406 INFO (pid:782918) [attach] - receive notification: showInfo []  

What's the output of :CocCommand rust-analyzer.serverVersion : not found

I use archlinux and installed rust-analyzer with pacman, but coc-rust-analyzer doesn't recognize it and request to download from github. Should it get from os instead?

fannheyward commented 2 years ago

You can setup rust-analyzer.server.path in your coc-settings.json to your rust-analyzer bin path, coc-rust-analyzer will use it.