File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff 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' `
115116The path to the buildifier executable.
116117Default: 'buildifier' `
117118
119+ *codefmt:perltidy_executable*
120+ The path to the perltidy executable.
121+ Default: 'perltidy' `
122+
118123 *codefmt:buildifier_lint_mode*
119124The lint_mode for buildifier. passed to buildifier --lint parameter.
120125
Original file line number Diff line number Diff line change @@ -18,13 +18,15 @@ must be installed on your system. (But not for testing; vroom intercepts
1818system calls.)
1919 :FormatCode perltidy
2020 ! perltidy .*
21+ $
2122
2223
2324
2425The 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 );
You can’t perform that action at this time.
0 commit comments