-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document another way to use with rust-analyzer #127
Document another way to use with rust-analyzer #127
Conversation
README.md
Outdated
### Setting up with unstable directory based rust-analyzer configuration | ||
An alternative way to configure `rust-analyzer` to use `leptosfmt` is to use directory based `rust-analyzer` configuration. | ||
|
||
To do this named `rust-analyzer.toml` to the root of your project with the content: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To do this named `rust-analyzer.toml` to the root of your project with the content: | |
To do this, create a file named `rust-analyzer.toml` in the root of your project with the following content: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or "add a file named ... to the root ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't believe how i messed this up :D nicely spotted
README.md
Outdated
|
||
This method of setting up rust-analyzer is editor agnostic to any editor that uses `rust-analyzer` for formatting rust code | ||
|
||
> Note: This feature of `rust-analyzer` is currently unstable and no guarantees are made that this will continue to work across versions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe mention the minimum version required?
https://github.com/rust-lang/rust-analyzer/releases/tag/2024-06-10
> Note: This feature of `rust-analyzer` is currently unstable and no guarantees are made that this will continue to work across versions. | |
> Note: This feature of `rust-analyzer` is currently unstable and no guarantees are made that this will continue to work across versions. You have to use a recent version of `rust-analyzer` ([2024-06-10](https://github.com/rust-lang/rust-analyzer/releases/tag/2024-06-10) or newer). |
@bram209 I like the proposed changes, updated the pr with adjustments now! Thanks for the feedback! |
Thank you for your contribution! |
This closes #126 by documenting the discussed alternative way to configure
rust-anlyzer
to useleptosfmt
to format code