@@ -14,33 +14,31 @@ examples.
1414
1515 :call codefmt#SetWhetherToPerformIsAvailableChecksForTesting(0)
1616
17-
18- The dartfmt formatter expects the dartfmt executable to be installed on your
17+ The dart formatter expects the dart executable to be installed on your
1918system.
2019
2120 % main(){}
2221 :FormatCode dartfmt
23- ! dartfmt .*
22+ ! dart format .*
2423 $ main(){}
2524
26- The name or path of the dartfmt executable can be configured via the
27- dartfmt_executable flag if the default of "dartfmt" doesn't work.
25+ The name, path, or list of the dart format command can be configured via the
26+ dartfmt_executable flag if the default of ["dart", "format"] doesn't work.
2827
29- :Glaive codefmt dartfmt_executable='mydartfmt '
28+ :Glaive codefmt dartfmt_executable='dartfmt '
3029 :FormatCode dartfmt
31- ! mydartfmt .*
30+ ! dartfmt .*
3231 $ main(){}
33- :Glaive codefmt dartfmt_executable='dartfmt'
34-
32+ :Glaive codefmt dartfmt_executable=`['dart', 'format']`
3533
36- You can format any buffer with dartfmt specifying the formatter explicitly.
34+ You can format any buffer with dart format specifying the formatter explicitly.
3735
3836 @clear
3937 % main() { print("hello ");<CR>
4038 |print("world\n");}
4139
4240 :FormatCode dartfmt
43- ! dartfmt .*2>.*
41+ ! dart format .*2>.*
4442 $ main() {
4543 $ \tprint("hello ");
4644 $ \tprint("world\\n");
@@ -51,14 +49,14 @@ You can format any buffer with dartfmt specifying the formatter explicitly.
5149 }
5250 @end
5351
54- The dart filetype will use the dartfmt formatter by default.
52+ The dart filetype will use the dart formatter by default.
5553
5654 @clear
5755 % main(){}
5856
5957 :set filetype=dart
6058 :FormatCode
61- ! dartfmt .*
59+ ! dart format .*
6260 $ main(){}
6361
6462 :set filetype=
@@ -70,7 +68,7 @@ It can format specific line ranges of code using :FormatLines.
7068 |Print("hello "); Print("world\n");}
7169
7270 :1,2FormatLines dartfmt
73- ! dartfmt .*2>.*
71+ ! dart format .*2>.*
7472 $ main() {
7573 $ \tprint("hello ");
7674 $ \tprint("world\\n");
@@ -81,5 +79,5 @@ It can format specific line ranges of code using :FormatLines.
8179 }
8280 @end
8381
84- NOTE: the dartfmt formatter does not natively support range formatting, so there
82+ NOTE: the dart formatter does not natively support range formatting, so there
8583are certain limitations like not being able to format misaligned braces.
0 commit comments