astrale-sharp / typstfmt

Apache License 2.0
253 stars 25 forks source link

Helix formatting #114

Closed Ciflire closed 1 year ago

Ciflire commented 1 year ago

[ ] I have tested with the master version of typstfmt and not just typst-lsp

Describe the bug

[[language]]
 name = "typst"
 scope = "source.typst"
 injection-regex = "^typst$"
 file-types = ["typ"]
 comment-token = "//"
 indent = { tab-width = 2, unit = "  " }
 roots = []
 language-server = { command = "typst-lsp" }
 auto-format = true
 formatter = {command = "typstfmt"}

This i my configuration at the moment, and it's formatting the document but adding a === stdin === line at the top of the document each time it's getting formatted

=== "stdin" ===
#set page(paper: "a4")

To Reproduce copy paste the config into your languages.toml file and save/format the document (auto-format is set to true)

astrale-sharp commented 1 year ago

This bug is actually already solved in the latest version of typstfmt, so I'm closing this for now,

if you test with the latest version and the bug is still there/ or reappears later, don't hesitate to reopen the issue!

Ciflire commented 1 year ago

Already tested it works thx a lot