Auto format for toml using taplo doesn't work #8509
-
SummaryUsing Reproduction StepsInstalled
config.toml [editor]
auto-format = true languages.toml [[language]]
name = "toml"
auto-format = true
formatter = { command = "taplo", args = ["fmt", "-"] } Helix log~/.cache/helix/helix.log
PlatformWindows Terminal Emulatortabby 1.0.201 Helix Versionhelix 23.05 (7f5940b) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Also don't know if this is related but the formatting using prettier is also not working. [[language]]
name = "typescript"
auto-format = true
formatter = { command = "npx", args = ["prettier", "--parser", "typescript"] }
|
Beta Was this translation helpful? Give feedback.
-
I can't reproduce - that config works for me on 23.05 and master. Are you sure the Also, the |
Beta Was this translation helpful? Give feedback.
I can't reproduce - that config works for me on 23.05 and master. Are you sure the
config.toml
andlanguages.toml
are being picked up? You can try adding an intentional TOML mistake and seeing if helix gives an error on startup. To test this I have.helix/config.toml
and.helix/languages.toml
created in my local clone of Helix. Then if I starthx languages.toml
and:write<ret>
then I see the file formatted.Also, the
formatter
line is unnecessary for taplo since the taplo language server supports the formatting part of LSP, so that line can be removed.