neoclide / coc-rls

Rust language server support for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The last component of the type is always missing in floating window.

your-diary opened this issue · comments

commented

According to README.md, it is supported

types and documentation on hover

and I found this "hover" can be triggered by call CocAction("doHover").

However, when I try to get the type information, the last component is always missing.

Screen Shot 2022-01-21 at 21 34 35

The expected result is std::vec::Vector<&str>, but the actual result is std::vec::. (Why?)

So types on hover is not working though documentation on hover is working:

Screen Shot 2022-01-21 at 21 40 16

Environments:

macOS BigSur
VIM - Vi IMproved 8.2

commented

My current workaround is to disable the floating window.

The documentation of coc.nvim says

"hover.target":~
Target to show hover information, default is floating window when
possible.
Valid options: ["preview", "echo", "float"]

  • "hover.target": "preview"

Screen Shot 2022-01-21 at 21 51 57

  • "hover.target": "echo"

Screen Shot 2022-01-21 at 21 52 39

Both work.