How do I disable coc diagnostic popups (such as unused variable)?

I have suggestions disabled with "suggest.autoTrigger": "none" but I'm struggling to figure out how to disable on-hover diagnostic windows.

I'd still like to be able to see diagnostics in the quickfix window, though.

1 Answer 1


You can use diagnostic.enableSign and diagnostic.enableMessage to set whether the signs and messages are shown. diagnostic.showUnused sets whether the unused warnings show up.There are probably similar settings in the language server options that affect diagnostics as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.