trouble.nvim
trouble.nvim copied to clipboard
Wrap text in Trouble Diagnostics?
Apologies if this is a dumb question, but I couldn't find a good answer while searching.
Is it possible to wrap the text in the trouble diagnostics?
Here's an example where wrapping the text would make things much easier to read without having to scroll.
Thanks!
It's just vim buffer so you can do :set wrap
. It doesn't look pretty though.
It seems like Trouble disables this option by default. Is there a way to override this? Thanks!
You can press "K" (shift-k) to see a popup with the full text
I think this can be achieved using autocmd. Since the file name is Trouble
I tried the following but didn't work:
au BufRead,BufNewFile Trouble setlocal wrap linebreak " Line wrap in Trouble files
If anyone has an idea on how to make it work, please, let me know!
I would love to have as an option that Trouble buffers always wrap text
I've opened a PR to add this feature here
Development on the main branch is EOL.
Trouble has been rewritten and will be merged in main soon.
This issue/feature either no longer exists or has been implemented on dev.
For more info, see https://github.com/folke/trouble.nvim/tree/dev