Skip to content

Commit 8314f4c

Browse files
authored
feat: add support for pasfmt (#841)
* feat(tools): add support for pasfmt * refactor: use stdin
1 parent d586c3b commit 8314f4c

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ You can view this list in vim with `:help conform-formatters`
332332
- [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.
333333
- [palantir-java-format](https://github.com/palantir/palantir-java-format) - A modern, lambda-friendly, 120 character Java formatter.
334334
- [pangu](https://github.com/vinta/pangu.py) - Insert whitespace between CJK and half-width characters.
335+
- [pasfmt](https://github.com/integrated-application-development/pasfmt) - Delphi code formatter.
335336
- [perlimports](https://github.com/perl-ide/App-perlimports) - Make implicit Perl imports explicit.
336337
- [perltidy](https://github.com/perltidy/perltidy) - Perl::Tidy, a source code formatter for Perl.
337338
- [pg_format](https://github.com/darold/pgFormatter) - PostgreSQL SQL syntax beautifier.

doc/conform.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ FORMATTERS *conform-formatter
471471
`palantir-java-format` - A modern, lambda-friendly, 120 character Java
472472
formatter.
473473
`pangu` - Insert whitespace between CJK and half-width characters.
474+
`pasfmt` - Delphi code formatter.
474475
`perlimports` - Make implicit Perl imports explicit.
475476
`perltidy` - Perl::Tidy, a source code formatter for Perl.
476477
`pg_format` - PostgreSQL SQL syntax beautifier.

lua/conform/formatters/pasfmt.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---@type conform.FileFormatterConfig
2+
return {
3+
meta = {
4+
url = "https://github.com/integrated-application-development/pasfmt",
5+
description = "Delphi code formatter.",
6+
},
7+
command = "pasfmt",
8+
args = {},
9+
stdin = true,
10+
}

0 commit comments

Comments
 (0)