nvimdev / lspsaga.nvim

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

fix: split diagnostic lines on \n character in floating window #1438

Open emgeee opened 2 months ago

emgeee commented 2 months ago

This PR attempts to help display diagnostic messages in a more graceful way.

Before, newline characters ('\n') in diagnostic messages were simply stripped out. This PR instead writes them out to a separate line

Before

Screenshot 2024-05-11 at 7 52 29 AM

After

Screenshot 2024-05-11 at 7 55 40 AM

Ideally, it'd be nice to not display the horizontal lines so it's more clear certain lines are meant to be grouped together but I wasn't entirely sure how to do that.

Open to feedback!