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:
49
49
* lua: luaformatterfiveone
50
50
* nix: nixpkgs-fmt
51
51
* ocaml: ocamlformat
52
+ * perl: perltidy
52
53
* python: autopep8, black, yapf
53
54
* ruby: rubocop
54
55
* rust: rustfmt
@@ -115,6 +116,10 @@ Default: 'gn' `
115
116
The path to the buildifier executable.
116
117
Default: 'buildifier' `
117
118
119
+ *codefmt:perltidy_executable*
120
+ The path to the perltidy executable.
121
+ Default: 'perltidy' `
122
+
118
123
*codefmt:buildifier_lint_mode*
119
124
The lint_mode for buildifier. passed to buildifier --lint parameter.
120
125
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
18
18
system calls.)
19
19
:FormatCode perltidy
20
20
! perltidy .*
21
+ $
21
22
22
23
23
24
24
25
The name and path of the Perltidy executable can be configured with a flag:
25
26
:Glaive codefmt perltidy_executable=some_other_program
26
27
:FormatCode perltidy
27
28
! some_other_program .*
29
+ $
28
30
:Glaive codefmt perltidy_executable=perltidy
29
31
30
32
@@ -33,6 +35,5 @@ Perltidy does basic whitespace management.
33
35
% my @nums = (1 .. 5);<CR>
34
36
:FormatCode perltidy
35
37
! perltidy .*
36
- $ =========
37
38
$ my @nums = ( 1 .. 5 );
38
39
my @nums = ( 1 .. 5 );
You can’t perform that action at this time.
0 commit comments