Try to format a comment or documentation block using gq. Nothing is formatted. If I reset formatprg to the default, it formats fine.
Formatting a comment with gq should wrap long lines.
9.1.1275
arch, foot terminal, TERM=foot, zsh
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Does that mean rustfmt does not work with comment blocks?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Try to format a comment or documentation block using gq. Nothing is formatted. If I reset formatprg to the default, it formats fine.
I think you should use gw instead? It is not affected by 'keywordprg'
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
That was the idea.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Likely rustfm misses context. That's what the RustFmt (modeled after :GoFmt) commands should supply, but neither does this work out in all cases.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I was not aware of gw and it does what I would expect.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #17055 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()