Skip to content
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

Merged
merged 3 commits into from
May 23, 2024

Conversation

Ryex
Copy link
Contributor

@Ryex Ryex commented May 20, 2024

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 to check but even if it is the correct key is check.

This prevents incorrect config conflicts downstream.

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
Copy link
Contributor

Review Checklist

Does this PR follow the Contribution Guidelines? Following is a partial checklist:

Proper conventional commit scoping:

  • For example, fix(lsp): some lsp-related bugfix

  • Pull request title has the appropriate conventional commit prefix.

If applicable:

  • Tested
    • Tests have been added.
    • Tested manually (Steps to reproduce in PR description).
  • Updated documentation.
  • Updated CHANGELOG.md

Copy link
Owner

@mrcjkb mrcjkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏

lua/rustaceanvim/config/server.lua Outdated Show resolved Hide resolved
lua/rustaceanvim/config/server.lua Outdated Show resolved Hide resolved
Copy link
Owner

@mrcjkb mrcjkb left a 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.

Copy link
Owner

@mrcjkb mrcjkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stylua is failing

@Ryex
Copy link
Contributor Author

Ryex commented May 22, 2024

ah shoot, I messed it up. give me a few.
EDIT: Fixed

@Ryex Ryex requested a review from mrcjkb May 22, 2024 02:29
@mrcjkb mrcjkb merged commit 3b5e51c into mrcjkb:master May 23, 2024
6 checks passed
folke pushed a commit to LazyVim/LazyVim that referenced this pull request Jun 14, 2024
## 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.
ueaner added a commit to ueaner/nvimrc that referenced this pull request Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants