Skip to content
Discussion options

You must be logged in to vote

So I have achieved custom line length in dart using helix by specifying custom formatter that is actually dart format. I also couldn't force dart lsp to format with custom line length.

I have added following text to my ~/.config/helix/languages.toml:

[[language]]
name = "dart"
formatter = {command = "dart", args = ["format", "-l", "120"]}

Funny thing is that -l or --line-length is actually hidden parameter of dart format https://github.com/dart-lang/dart_style/pull/1147/files#diff-81a62ea70b958516746798f662af162668e50464f0faf9d076cc17e2c6e73bd3 and is not printed when dart format --help -v.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@solgar
Comment options

Answer selected by nathananderson98
@nathananderson98
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #7968 on August 16, 2023 21:47.