How to modify inbuilt line diagnostics popup to get wrapped lines

Here first point in the diagnostic popup is clipped off and its line doesn’t wrap to show the full sentence. This is invoked using inbuilt lua vim.lsp.diagnostic.show_line_diagnostics().

1 Like

Just for reference, here is the full warning:

You can see LSP: How should hover on longer text be displayed? · Issue #12281 · neovim/neovim · GitHub which I believe is your concern. For reference, this will likely be fixed soon either in refactor(lsp): consolidate the different floating window methods into `open_floating_preview` by folke · Pull Request #14649 · neovim/neovim · GitHub or a follow-up PR.

1 Like