clangd / coc-clangd

clangd extension for coc.nvim
Apache License 2.0
762 stars 34 forks source link

add interface to disable diagnostics #30

Closed cogig closed 4 years ago

fannheyward commented 4 years ago

Set "diagnostic.enable": false in your coc-settings.json.

cogig commented 4 years ago

Thanks for your reply.My coc-setting.json snippet about diagnostic is as follow.

 "diagnostic.enable": true,
 "coc.preferences.diagnostic.displayByAle":true,

If setting "diagnostic.enable": false,the action will close diagnostics funtion for other programming languages.All i want to do is that making coc.nvim and ale.vim work together.And I'm used to using cppcheck as linter for cpp and c.

fannheyward commented 4 years ago

You mean coc-clangd to disable diagnostics only?

cogig commented 4 years ago

Yes,coc-python offers python.analysis.diagnosticEnabled to disable diagnostics only, and if coc-clangd does what coc-python do,it maybe even better.

fannheyward commented 4 years ago

Use clangd.disableDiagnostics to disable diagnostics.