Open robinmoussu opened 4 years ago
what might be really nice is if the details were wrapped under the short error message, closed by default (maybe open if there's only one or something), so you can easily access them with z-o
but still have a nice overview.
Tested with vim 8.2 and nvim 0.5.0-dev on fedora 30, with the current master of rust.vim (9e6836f44528312171b21a78d9228c88615f63ae) and the current master branch of syntastic (b3e2d8470fddc7f2b598f09023ebc5045a3fb1fd)
Steps to reproduce:
Type some rust code and wait for the error to be displayed in the location list (or open it manually with :lopen)
Currently the location list windows looks like this:
This is the same output that if you do manually (in command mode):
If I do change it to
I get much nicer details
I didn't found a way to specify the
--message-format
used by rust.vim It is possible? I am willing to do a PR, but I don't know where to look. I can also modify theerrorformat
used by rust.vim to correctly parse the multiline error but I don't know either where to look.Using rust.vim + syntastic is much nicer that calling
:make
by hand since you have instant feedback, and it also works even if you haveautochdir
set.I assume it's not possible to add colors (I don't think it's possible to display ANSI colors in vim – I have no idea if it's possible for neovim). If it was possible, then ideally
--message-format=json-diagnostic-rendered-ansi
should be used.