diff options
author | Seth Daniel <seth@sethdaniel.org> | 2023-08-29 20:55:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 18:55:47 -0700 |
commit | 882b75994af34fed3c4fe6f1a97ad58b352ec25f (patch) | |
tree | a1c7195aa8618da83a796dda4765042b792d4913 | |
parent | 2c9a6098fa3385ac6b7cbae19a1888b59b12ef02 (diff) |
feat: add perltidy (#12)
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | lua/conform/formatters/perltidy.lua | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -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" }, +} |