Skip to content

Commit

Permalink
Fix perltidy.vroom tests to pass and regen vimdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarnett committed Aug 25, 2024
1 parent d7668cb commit de65871
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doc/codefmt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ The current list of defaults by filetype is:
* lua: luaformatterfiveone
* nix: nixpkgs-fmt
* ocaml: ocamlformat
* perl: perltidy
* python: autopep8, black, yapf
* ruby: rubocop
* rust: rustfmt
Expand Down Expand Up @@ -115,6 +116,10 @@ Default: 'gn' `
The path to the buildifier executable.
Default: 'buildifier' `

*codefmt:perltidy_executable*
The path to the perltidy executable.
Default: 'perltidy' `

*codefmt:buildifier_lint_mode*
The lint_mode for buildifier. passed to buildifier --lint parameter.

Expand Down
3 changes: 2 additions & 1 deletion vroom/perltidy.vroom
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ must be installed on your system. (But not for testing; vroom intercepts
system calls.)
:FormatCode perltidy
! perltidy .*
$



The name and path of the Perltidy executable can be configured with a flag:
:Glaive codefmt perltidy_executable=some_other_program
:FormatCode perltidy
! some_other_program .*
$
:Glaive codefmt perltidy_executable=perltidy


Expand All @@ -33,6 +35,5 @@ Perltidy does basic whitespace management.
% my @nums = (1 .. 5);<CR>
:FormatCode perltidy
! perltidy .*
$ =========
$ my @nums = ( 1 .. 5 );
my @nums = ( 1 .. 5 );

0 comments on commit de65871

Please sign in to comment.