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

Multi-line diagnostics #11

Closed
ii14 opened this issue Apr 27, 2021 · 8 comments
Closed

Multi-line diagnostics #11

ii14 opened this issue Apr 27, 2021 · 8 comments

Comments

@ii14
Copy link
Contributor

ii14 commented Apr 27, 2021

Hey, would you consider supporting multi-line diagnostics? Right now all lines are concatenated and displayed in a single line, while vim.lsp.diagnostic.show_line_diagnostics() displays them correctly.

screenshot-210427-094654

@folke
Copy link
Owner

folke commented Apr 27, 2021

I'll see what I can do. At the minimum, I can add a keyboard shortcut to open a small floating window with the multi-line text.

@elkowar
Copy link
Contributor

elkowar commented Apr 29, 2021

Such a keyboard shortcut would be fantastic! although just having a way to expand the error in the list would also be very welcome ^^

@folke
Copy link
Owner

folke commented May 2, 2021

Just added this. It's the configurable hover action and defaults to K

@elkowar
Copy link
Contributor

elkowar commented May 2, 2021

Another cool idea I just had here would be to allow for having a split pane in the bottom list, where the right pane just shows the multiline error of the currently hovered error, and the error list is on the left. Although this hover solution works really well, too! Thanks a ton already!

@folke
Copy link
Owner

folke commented May 15, 2021

@elkowar I'll just keep the hover for now, but thank you for the suggestion :)

@folke folke closed this as completed May 15, 2021
@Soupstraw
Copy link

I'd prefer if all errors in the trouble window are shown multiline. This could be an option in the configuration.
If the option is turned on, the errors would look something like this:

v file1.txt  4
     error  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore 
              magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
              consequat. 
     error  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore 
              magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 
              consequat. 

@Kaanta0
Copy link

Kaanta0 commented Jan 4, 2023

hello everyone, was this added as an option ? or do we only have the hover key ?

@HappyySunshine
Copy link

that nvim pluggin seems to solve the issue https://sr.ht/~whynothugo/lsp_lines.nvim/

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

6 participants