Skip to content

Commit

Permalink
Update README.md (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
bram209 authored Dec 21, 2023
1 parent dfc05ea commit c5489fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ You can set the `rust-analyzer.rustfmt.overrideCommand` setting.
"rust-analyzer.rustfmt.overrideCommand": ["leptosfmt", "--stdin", "--rustfmt"]
```

And to configure `rustfmt`, place a `rustfmt.toml` file in the root of your project:
And **you must** configure `rustfmt` to use the correct edition, place a `rustfmt.toml` file in the root of your project:
```toml
edition = "2021"
# other config...
# (optional) other config...
```

> Note: For VSCode users, I recommend to use workpsace settings (CMD + shift + p -> Open workspace settings), so that you can only configure `leptosfmt` for workpsaces that are using leptos. For Neovim users, I recommend using [neoconf.nvim](https://github.com/folke/neoconf.nvim) for managing project-local LSP configuration.
Expand Down

0 comments on commit c5489fa

Please sign in to comment.