Skip to content

Commit de65871

Browse files
committed
Fix perltidy.vroom tests to pass and regen vimdoc
1 parent d7668cb commit de65871

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

doc/codefmt.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ The current list of defaults by filetype is:
4949
* lua: luaformatterfiveone
5050
* nix: nixpkgs-fmt
5151
* ocaml: ocamlformat
52+
* perl: perltidy
5253
* python: autopep8, black, yapf
5354
* ruby: rubocop
5455
* rust: rustfmt
@@ -115,6 +116,10 @@ Default: 'gn' `
115116
The path to the buildifier executable.
116117
Default: 'buildifier' `
117118

119+
*codefmt:perltidy_executable*
120+
The path to the perltidy executable.
121+
Default: 'perltidy' `
122+
118123
*codefmt:buildifier_lint_mode*
119124
The lint_mode for buildifier. passed to buildifier --lint parameter.
120125

vroom/perltidy.vroom

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ must be installed on your system. (But not for testing; vroom intercepts
1818
system calls.)
1919
:FormatCode perltidy
2020
! perltidy .*
21+
$
2122

2223

2324

2425
The name and path of the Perltidy executable can be configured with a flag:
2526
:Glaive codefmt perltidy_executable=some_other_program
2627
:FormatCode perltidy
2728
! some_other_program .*
29+
$
2830
:Glaive codefmt perltidy_executable=perltidy
2931

3032

@@ -33,6 +35,5 @@ Perltidy does basic whitespace management.
3335
% my @nums = (1 .. 5);<CR>
3436
:FormatCode perltidy
3537
! perltidy .*
36-
$ =========
3738
$ my @nums = ( 1 .. 5 );
3839
my @nums = ( 1 .. 5 );

0 commit comments

Comments
 (0)