Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ functions.
<!-- `> bash ./supported-programs.sh` -->

<!-- BEGIN mdsh -->
`treefmt-nix` currently supports 111 formatters:
`treefmt-nix` currently supports 112 formatters:

* [actionlint](programs/actionlint.nix)
* [alejandra](programs/alejandra.nix)
Expand Down Expand Up @@ -304,6 +304,7 @@ functions.
* [prettier](programs/prettier.nix)
* [protolint](programs/protolint.nix)
* [purs-tidy](programs/purs-tidy.nix)
* [qmlformat](programs/qmlformat.nix)
* [rstfmt](programs/rstfmt.nix)
* [rubocop](programs/rubocop.nix)
* [ruff-check](programs/ruff-check.nix)
Expand Down
5 changes: 5 additions & 0 deletions examples/formatter-qmlformat.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[formatter.qmlformat]
command = "qmlformat"
excludes = []
includes = ["*.qml"]
options = []
27 changes: 27 additions & 0 deletions programs/qmlformat.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
mkFormatterModule,
...
}:
{
meta.maintainers = [
"fvrings"
];

imports = [
(mkFormatterModule {
name = "qmlformat";
mainProgram = "qmlformat";
package = [
"kdePackages"
"qtdeclarative"
];
args = [
"-i"
];
includes = [
"*.qml"
];
})
];

}