Skip to content

Commit

Permalink
feat: add perltidy (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhoIsSethDaniel authored Aug 30, 2023
1 parent 2c9a609 commit 882b759
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions lua/conform/formatters/perltidy.lua
Original file line number Diff line number Diff line change
@@ -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" },
}

0 comments on commit 882b759

Please sign in to comment.