-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
fix(enable_clippy): use correct rust-analyzer config key #403
Conversation
The correct config key for a rust-analyzer check command table is `check`. `checkOnSave` is a boolean (there are some hints in the manual that `checkOnSave` as a table is aliased to `check` but even if it is the correct key is `check`) this prevents incorrect config conflicts downstream
Review ChecklistDoes this PR follow the Contribution Guidelines? Following is a partial checklist: Proper conventional commit scoping:
If applicable:
|
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.
Thanks 🙏
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.
LGTM
Thanks again 🙏
I'll test this when I'm near my laptop before merging.
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.
stylua is failing
ah shoot, I messed it up. give me a few. |
## What is this PR for? After recent changes in `rustaceanvim` in mrcjkb/rustaceanvim#403, `checkOnSave` is supposed to be boolean and the table that we were passing to `checkOnSave` previously should be passed to `check` instead. I left the `check` table undefined, because the options that we were passing to `checkOnSave` before are the default ones being passed to `check`. So, only if the user wants to change something should he change the values of the `check` table according to what he wants. ## Does this PR fix an existing issue? No ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
The correct config key for a rust-analyzer check command table is
check
.checkOnSave
is a boolean.https://rust-analyzer.github.io/manual.html#configuration
There are some hints in the manual that
checkOnSave
as a table is aliased tocheck
but even if it is the correct key ischeck
.This prevents incorrect config conflicts downstream.