Skip to content

How to configure rustfmt #6595

Jul 2, 2023 · 2 comments · 8 replies
Discussion options

You must be logged in to vote

For me, the problem was that zed wasn't running rustfmt in nightly.

I solved it with the suggestion at #4491 (comment):

"lsp": {
  "rust-analyzer": {
    "initialization_options": {
      "rustfmt": {
        "extraArgs": ["+nightly"]
      }
    }
  }
}

I thought I had to configure in Zed, but it's reading fine from rustfmt.toml.

So, I guess the answer is: just edit the rustfmt.toml like usual.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@johnm
Comment options

@marcospb19-cw
Comment options

@UnknownSuperficialNight
Comment options

@marcospb19-cw
Comment options

Answer selected by imding
@imding
Comment options

@marcospb19-cw
Comment options

@imding
Comment options

@ekakshjanweja
Comment options

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
6 participants