coc-rust-analyzer 不再有 inlay 类型提示

问题描述 投票:0回答:1

我当前的配置

 ➜ cat ~/.config/nvim/coc-settings.json
{
    "suggest.noselect": true,
    "rust-analyzer.inlayHints.typeHints.enable": true,
    "rust-analyzer.inlayHints.chainingHints.enable": true
}

我在期待什么

let a = 12; // there used to be a :i32 displayed next to a
rust neovim coc.nvim rust-analyzer
1个回答
0
投票

看起来你正在使用稳定的 nvim,最新的 coc.nvim 支持内联 inlayHint https://github.com/neoclide/coc.nvim/pull/4648,需要 nvim 0.10+。

是的,这对于 nvim 稳定用户来说是一个重大变化。两种解决方案:

  1. 将 coc.nvim 降级为 https://github.com/neoclide/coc.nvim/commit/3dc6153a85ed0f185abec1deb972a66af3fbbfb4
  2. 将你的 nvim 升级到 0.10,是的,现在是每晚。
© www.soinside.com 2019 - 2024. All rights reserved.