nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.43k stars 285 forks source link

Broken URLs in hover window due to special symbols #1272

Closed rensftw closed 1 year ago

rensftw commented 1 year ago

Describe the bug

Lspsaga prints the \ character which breaks URLs and reduces readability. I'm guessing this has to do with escaping special characters.

Here's an example with Lspsaga hover:

image

Example with native hover:

image

Steps to reproduce

Hover over any symbol that has special characters (eg a URL) in the description. In my examples above I am using jsonls and b0o/SchemaStore.nvim and then hovering over this schema

However I am noticing now that lspsaga does not print URLs at all in other LSPs (eg lua LSP) 🤔

image

I need to spend more time on specific steps to reproduce

Expected behavior

URLs are not broken, and \ does not get printed in front of special characters.

Neovim version (nvim -v)

v0.9.1

lspsaga commit

5073eda

Terminal name/version

alacritty

Related

https://github.com/b0o/SchemaStore.nvim/issues/21

glepnir commented 1 year ago

However I am noticing now that lspsaga does not print URLs at all in other LSPs (eg lua LSP)

this is feature. it just like markdown render. and you can jump to url by press gx on view xxxx position