lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

lsp-ui-doc doesn't show docs provided by clangd correctly.

Open h0cheung opened this issue 5 years ago • 4 comments

When I use lsp-ui-doc to read some docs of STL containers, it show like this: 2020-07-20-00-28.png

I'm using doom-emacs, and this is my configs: https://gitlab.com/h-cheung/dotfiles/-/tree/master/doom.d

I don't known it is a bug of lsp-ui-doc or clangd, or it is because of some wrong configs.

h0cheung avatar Jul 19 '20 16:07 h0cheung

I think that there was a bug in clangd related to that. Please share your clangd version.

cc @sebastiansturm @danielmartin

yyoncho avatar Jul 19 '20 17:07 yyoncho

@yyoncho 10.0.0 in arch linux

h0cheung avatar Jul 19 '20 17:07 h0cheung

Not exactly sure how you define 'correctly' here. If you're alluding to the spurious backslashes in front of the comma, or in front of @brief, @ingroup, @tparam, I can reproduce those with clangd 10.0.1 while they are gone with clangd-11 builds (also, @brief, @ingroup, @tparam appear on separate lines with clangd-11). On the other hand, the link to tables.html still displays as \<a href... for me, not as a hyperlinked rendering of the word "container" in case that's what you expected to see

sebastiansturm avatar Jul 20 '20 21:07 sebastiansturm

@sebastiansturm I think 'correctly' can be define as, it shows like what the developers of clangd want to see, or shows like in the vscode extension which is developed by them.

h0cheung avatar Jul 29 '20 02:07 h0cheung