rachartier / tiny-inline-diagnostic.nvim

A Neovim plugin that display prettier diagnostic messages. Display one line diagnostic messages where the cursor is, with icons and colors.
MIT License
164 stars 3 forks source link

Plugin doesn't support multi-line errors #10

Closed Shtsh closed 1 week ago

Shtsh commented 1 week ago

The plugin ignores \n in the diagnostic messages and shows everything on the same line

Screenshot 2024-07-03 at 13 27 30

It would be great if the pugin can display such messages properly to be readable.

rachartier commented 1 week ago

Hello, Thanks for the feedback. It should be good! Try to update it and tell me if it is good for you.

Shtsh commented 1 week ago

Thank you. The new line is now respected. However I see the issue that the plugin probably doesn't take in account inlay hints and the new line seems to be shifted.

Screenshot 2024-07-04 at 13 05 18
rachartier commented 1 week ago

Yes... I don't really know how to handle this for now. It's the same with ghost_text for nvim-cmp. I need to do more testing to handle this problem :(