-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
doxygen documentation is shown in hover window with escaped punctiation #48
Comments
Its fundamentally a coc issue: it requests the markdown version of the hover card, but then doesn't unescape the text per markdown rules. That said, much escaping is optional and latest clangd should be doing much less (though there are common cases where it can't be avoided) |
Yeah... I'm working to get my codebase building with clang-10. I'm on clang-8 right now, so maybe that's causing a lot of the excess markdown. |
well, clangd-10 still has ample excess markdown. |
I'm sure that's true, but do you have an example? |
The wrapping is still terrible, we do detect the hard breaks after the colons but this is a good example of where assuming short lines imply hard breaks would be a big win. |
Why did you guys stop preserving the line breaks? Seems like that could at least be an option. |
we've improved escaping recently. you can build clangd at head, or use a binary from our weekly releases |
thanks @kadircet I tested it with the latest snapshot, and saw improvement. attached is the updated screenshot. |
It looks like they don't want to fix this in coc (neoclide/coc.nvim#2308). I often use markdown in my doc comments so this is really annoying. Is it possible to tell clangd to do no escaping at all? |
@jsholmes You can try |
coc.nvim has rework document highlights, neoclide/coc.nvim#2497, please upgrade your coc.nvim and try again. |
Latest clangd has improved a lot, close for now. |
I don't know if this is a coc issue or a coc-clangd issue, but when I get hover information about a symbol, the documentation is shown with escaped punctuation making it quite hard to read. See screenshot.
The text was updated successfully, but these errors were encountered: