From de65871fd6b926e3f8fca74dabe0e1a2e4285087 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Sun, 25 Aug 2024 12:57:30 -0600 Subject: [PATCH] Fix perltidy.vroom tests to pass and regen vimdoc --- doc/codefmt.txt | 5 +++++ vroom/perltidy.vroom | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/codefmt.txt b/doc/codefmt.txt index 16679ad..4bf067e 100644 --- a/doc/codefmt.txt +++ b/doc/codefmt.txt @@ -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 @@ -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. diff --git a/vroom/perltidy.vroom b/vroom/perltidy.vroom index cab8bb3..d4e1446 100644 --- a/vroom/perltidy.vroom +++ b/vroom/perltidy.vroom @@ -18,6 +18,7 @@ must be installed on your system. (But not for testing; vroom intercepts system calls.) :FormatCode perltidy ! perltidy .* + $ @@ -25,6 +26,7 @@ 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 @@ -33,6 +35,5 @@ Perltidy does basic whitespace management. % my @nums = (1 .. 5); :FormatCode perltidy ! perltidy .* - $ ========= $ my @nums = ( 1 .. 5 ); my @nums = ( 1 .. 5 );