diff --git a/README.md b/README.md index 03e27516..6539df7f 100644 --- a/README.md +++ b/README.md @@ -332,6 +332,7 @@ You can view this list in vim with `:help conform-formatters` - [packer_fmt](https://developer.hashicorp.com/packer/docs/commands/fmt) - The packer fmt Packer command is used to format HCL2 configuration files to a canonical format and style. - [palantir-java-format](https://github.com/palantir/palantir-java-format) - A modern, lambda-friendly, 120 character Java formatter. - [pangu](https://github.com/vinta/pangu.py) - Insert whitespace between CJK and half-width characters. +- [pasfmt](https://github.com/integrated-application-development/pasfmt) - Delphi code formatter. - [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. diff --git a/doc/conform.txt b/doc/conform.txt index 6cec5622..c624d9a4 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -471,6 +471,7 @@ FORMATTERS *conform-formatter `palantir-java-format` - A modern, lambda-friendly, 120 character Java formatter. `pangu` - Insert whitespace between CJK and half-width characters. +`pasfmt` - Delphi code formatter. `perlimports` - Make implicit Perl imports explicit. `perltidy` - Perl::Tidy, a source code formatter for Perl. `pg_format` - PostgreSQL SQL syntax beautifier. diff --git a/lua/conform/formatters/pasfmt.lua b/lua/conform/formatters/pasfmt.lua new file mode 100644 index 00000000..60e8d537 --- /dev/null +++ b/lua/conform/formatters/pasfmt.lua @@ -0,0 +1,10 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/integrated-application-development/pasfmt", + description = "Delphi code formatter.", + }, + command = "pasfmt", + args = {}, + stdin = true, +}