Repository navigation
Setting up qmlformat
#16456
|
I'm having trouble setting up qmlformat for QML files. My current setup looks as such: [[language]]
name = "qml"
formatter = { command = "/usr/lib/qt6/bin/qmlformat", args = [
"--normalize",
"--single-line-empty-objects",
"%{buffer_name}",
] }
auto-format = trueBecause qmlformat requites a filename as an arguments instead of text passed into stdin, however I am receiving this error instead: Does anybody have any idea why might that be or any experience with setting QML formatting up in Helix? |
Answered by
g4lb
Nov 8, 2026
Replies: 1 comment 4 replies
|
Helix runs the formatter in the folder of the file, so |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try
"%sh{realpath %{buffer_name}}".