File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ with a simple string.
2020
2121 :Glaive codefmt prettier_executable='prettier'
2222
23- The prettier formatter expects the prettier executable to be installed on your system.
23+ The prettier formatter expects the prettier executable to be installed on your
24+ system.
2425
2526 % function HelloWorld(){if(!greeting){return null};}
2627 :FormatCode prettier
27- ! cd .* prettier .*
28+ ! cd .* prettier .*--parser babel.*
2829 $ function HelloWorld() {
2930 $ if (!greeting) {
3031 $ return null;
@@ -77,6 +78,7 @@ Errors are reported using the quickfix list.
7778 |[error] 1 | function foo() {\n
7879 |[error] > 2 |\n
7980 |[error] | ^'
81+ ~ (1 of 1): SyntaxError: Unexpected token
8082 function foo() {
8183 @end
8284 :echomsg line('.') . ',' . col('.')
@@ -92,7 +94,7 @@ It can format specific line ranges of code using :FormatLines.
9294 |function Greet(){if(!greeting){return null};}
9395
9496 :1,1FormatLines prettier
95- ! cd .* prettier .*--parser babylon -- range-end 50.*2>.*
97+ ! cd .* prettier .*--range-end 50.*2>.*
9698 $ function HelloWorld() {
9799 $ if (!greeting) {
98100 $ return null;
You can’t perform that action at this time.
0 commit comments