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

Add HTML space rendering to lsp-ui-doc #754

Open
gbrlgn opened this issue Jul 3, 2023 · 0 comments
Open

Add HTML space rendering to lsp-ui-doc #754

gbrlgn opened this issue Jul 3, 2023 · 0 comments

Comments

@gbrlgn
Copy link

gbrlgn commented Jul 3, 2023

Some LSPs might end up rendering some spaces as HTML, such as what is happening in the YAML Language Server, since a commit introduced this kind of weird spacing that parses &emsp for spaces, whose are rendered literally by lsp-ui-doc as depicted below:

yamlls

This happens in all instances of lsp-ui-doc, be it the hover box or the minibuffer, as these characters are coming directly from the language server responses. Ideally, they shouldn't even get rendered, as this kind of spacing would look awkward, but the fact that these characters are getting rendered as plaintext confuses and annoys me.

Some users in the Neovim community have come up with some workarounds but I don't really know if they're needed in this situation, however, I think they might also be taken as a clue for whatever is happening here.

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