-
Notifications
You must be signed in to change notification settings - Fork 459
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
Disable clang-tidy for clangd, but not effective #585
Comments
can you send the output of |
{ |
Might also have to disable in null-ls https://github.com/ayamir/nvimdots/blob/ed54fd687d7347168b887b8b420d42f520f8b5d6/lua/modules/configs/completion/formatters/clang_format.lua In this case null-ls is probably getting priority here. You can see running lsp client with |
What should I do? |
comment this line. nvimdots/lua/core/settings.lua Line 76 in ed54fd6
|
This comment was marked as off-topic.
This comment was marked as off-topic.
After I set it up, it didn't work. |
Linters still reports errors after u comment Would u mind share the screenshots? I would lieke to see the format of the diagnostics. |
Open a new issue, don't off-topic. |
@macrosea You can directly remove |
OK, but , I also want to achieve it ,comment "--clang-tidy" or remove it ,no problem been solved. |
<img width="263" alt="Pasted Graphic 3" src="https://user-images.githubusercontent.com/116 |
Ok, so from the diagnostics, those errors are from lsp and but not |
Thank you very much. |
You can write a
|
AFAIK This is an upstream issue that might be fixed (perhaps?) in the next release. Current workaround is to create a new
Then add the following content to that file: Diagnostics:
ClangTidy:
Remove: ["*"]
Append to CompileFlags:
Add: [-std=c++??] # or gnu++?? |
Closed due to inactivity. |
Version confirmation
Following prerequisites
Neovim version
NVIM v0.8.2
Operating system/version
macos and ubuntu
Terminal name/version
iTerm
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
SSH (use_ssh = true)
Affected language servers
clangd
How to reproduce the issue
modify the file: lua/modules/configs/completion/servers/clangd.lua as the below:
Actual behavior
diagnostic still not disappear;
Expected behavior
No response
Support info
open a cpp file
Logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: