We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b1594 commit 3beac9aCopy full SHA for 3beac9a
vroom/shfmt.vroom
@@ -49,6 +49,22 @@ You can format any buffer with shfmt specifying the formatter explicitly.
49
fi
50
@end
51
52
+Errors are reported using the quickfix list.
53
+
54
+ @clear
55
+ % foo() {
56
57
+ :FormatCode shfmt
58
+ ! shfmt .*2>.*
59
+ foo() {
60
+ @end
61
+ :echomsg line('.') . ',' . col('.')
62
+ ~ 1,7
63
+ :echomsg string(map(getqflist(),
64
+ |'v:val.lnum . "," . v:val.col . "," . v:val.text'))
65
+ ~ ['1,7,reached EOF without matching { with }']
66
67
68
The sh filetype will use the shfmt formatter by default.
69
70
@clear
0 commit comments