Closed Seb-C closed 11 months ago
The errors were returned from the language server, here's rust-analyzer, coc.nvim/coc-rust-analyzer just clients to display them.
Needs the rust-analyzer to provide a way to disable returning note
errors.
You can use diagnostic.level
to filter diagnostics by severity level, the second one looks like hint
level. But this will filter all diagnostics.
Ah, thanks, that worked :+1:
What's the output of
:CocInfo
What's the output of
:CocCommand rust-analyzer.serverVersion
[coc.nvim] rust-analyzer 1.74.1 (a28077b 2023-12-04)
What's your coc-rust-analyzer version? You can get it from
:CocList extensions
0.75.0
Issue
Where there is an error, it shows-up in vim both where the error happens, and where the definition is.
For any other programming languages I only get this kind of annotation in code where there is an actual error (either compile or lint), so I find it very distracting and annoying to get anything to show up in files that are valid.
I looked at the documentation, but could not find how to disable the second one.
It seems to match the
note:
output of the compiler, which I'd rather not have popping-up in my editor: