Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
your-diary opened this issue Jan 21, 2022 · 1 comment
Open

Comments

@your-diary
Copy link

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

@your-diary
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant