aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--lua/conform/formatters/perltidy.lua9
2 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index be8e776..7fef715 100644
--- a/README.md
+++ b/README.md
@@ -175,6 +175,7 @@ To view configured and available formatters, as well as to see the path to the l
- [nixpkgs_fmt](https://github.com/nix-community/nixpkgs-fmt) - nixpkgs-fmt is a Nix code formatter for nixpkgs.
- [ocamlformat](https://github.com/ocaml-ppx/ocamlformat) - Auto-formatter for OCaml code.
- [perlimports](https://github.com/perl-ide/App-perlimports) - Make implicit Perl imports explicit
+- [perltidy](https://github.com/perltidy/perltidy) - Perl::Tidy, a source code formatter for Perl
- [pg_format](https://github.com/darold/pgFormatter) - PostgreSQL SQL syntax beautifier.
- [prettier](https://github.com/prettier/prettier) - Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
- [prettierd](https://github.com/fsouza/prettierd) - prettier, as a daemon, for ludicrous formatting speed.
diff --git a/lua/conform/formatters/perltidy.lua b/lua/conform/formatters/perltidy.lua
new file mode 100644
index 0000000..3b8be2c
--- /dev/null
+++ b/lua/conform/formatters/perltidy.lua
@@ -0,0 +1,9 @@
+---@type conform.FileFormatterConfig
+return {
+ meta = {
+ url = "https://github.com/perltidy/perltidy",
+ description = "Perl::Tidy, a source code formatter for Perl",
+ },
+ command = "perltidy",
+ args = { "--quiet" },
+}