虽然安装了 rust-analyzer, 并且配置了 VIM ALE 插件,但是输入 gd 依然没有反应。 于是尝试在终端下执行: rust-analyzer 报错: error: Unknown binary 'rust-analyzer' in official toolchain 'stable-x86_64-unknown-linux-gnu' 原因是我之前安装 rust-analyzer 不是通过 rustup 工具安装的,而是手动下载安装的,...
:CocInstall coc-rust-analyzer 这一步简单迅速。 安装rust-src:rustup component add rust-src 接着还必须安装针对 Rust 的 LSP(rust-analyzer)。鉴于安装clangd时出现的曲折,我决定手动安装rust-analyzer。诡异的事情发生了。手动安装的可执行程序不被 coc 识别。 无奈下尝试 vim 中的自动安装居然成功了。。。