fannheyward / coc-rust-analyzer

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

Inlay Type Hints are misaligned, all forced to end of line instead of appearing inline #1110

Closed onlyhavecans closed 1 year ago

onlyhavecans commented 1 year ago

I find that inlay-type hints do not appear correctly inside NeoVim.

In order to demonstrate I took two screenshots. One from inside NeoVim and the other from SublimeText

NeoVim NeoVim

Sublime Text Sublime Text

What's the output of :CocInfo

vim version: NVIM v0.8.3 node version: v19.5.0 coc.nvim version: 0.0.82-b7375d5f 2023-01-30 05:09:03 +0800 coc.nvim directory: /Users/dos/.local/share/nvim/plugged/coc.nvim term: tmux platform: darwin

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

[coc.nvim] rust-analyzer 0.3.1386-standalone (f1b257f4e 2023-01-27)

What's your coc-rust-analyzer version? You can get it from :CocList extensions

fannheyward commented 1 year ago

nvim can't put text in middle of text, use vim 9.

截屏2023-02-03 10 51 24