Closed jbuckmccready closed 3 months ago
Hey 👋
Something like that can't be implemented by this plugin. You'll have to request it in the rust-analyzer issues, although I don't think it would be implemented.
An way you could solve this would be to disable clippy in the rust-analyzer settings and use something like nvim-lint to run clippy checks on demand.
https://github.com/mfussenegger/nvim-lint/issues/256 😬
Thanks for response, awkward situation, was hoping to get the diagnostics fed into the lsp so I can use telescope to jump between them rather than running from command line and having to jump to file+line independent of telescope.
It shouldn't be hard to contribute clippy support to nvim-lint:
cmd = "cargo"
and args = { "clippy", "--message-format=json" }
.was hoping to get the diagnostics fed into the lsp so I can use telescope to jump between them rather than running from command line and having to jump to file+line independent of telescope.
Both the LSP client and nvim-lint use the samevim.diagnostic
API. So this shouldn't be an issue.
Feature description
I'd like to be able to have only
cargo check
on save but still be able to runclippy
viaflyCheck
manually (feeding results into lsp diagnostics).I saw this: https://github.com/mrcjkb/rustaceanvim/discussions/334 but from what I can tell the way things are working it's all or nothing, with these being the only possibilities:
clippy
and runclippy
on saveclippy
entirely (cannot run manually) with onlycheck
on savecheck
orclippy
manually viaflyCheck
I want
check
on save, withflyCheck
using clippy, e.g.,:RustLsp flyCheck run clippy
.