conform.nvim
conform.nvim copied to clipboard
doc: Add recipe to immediately display formatter error output
Add a recipe that show cases how to display formatter output if it fails or explanation if it is unable to run.
A nice error message, similar to one below, will show up on the bottom of the screen to help quickly spot an error:
Formatter 'rustfmt' error: error: expected `;`, found `bar`
--> <stdin>:2:10
|
2 | foo()
| ^ help: add `;` here
3 | bar()
| --- unexpected token
Press ENTER or type command to continue
P.S. I think this would be nice to have enabled by default. Given that it would probably help to reduce frustration when formatter wasn't actually found/installed, or absence of formatting action wasn't immediately obvious (hint to check conform log appears only once). And this doesn't seem to anyhow worsen the experience.