The floating window of LSP in neovim uses different colors for different kinds of diagnostics: red for errors, yellow for warnings, etc.

How do I disable all colors?

1 Answer 1


The highlight groups used for LSP diagnostics can be found in :h diagnostic-highlights. The main four are the following:

  • DiagnosticError
  • DiagnosticWarn
  • DiagnosticHint
  • DiagnosticInfo

The other highlight groups, by default, are linked to these four. So clearing the colors of these (or linking them to :h hl-Normal) should be enough. But if you want the colors to be reset only in the floating windows and the colors to remain in the virtual texts, then you'll have to clear the Floating variant of the diagnostic-highlights.

hi link DiagnosticFloatingError Normal
hi link DiagnosticFloatingWarn Normal
hi link DiagnosticFloatingHint Normal
hi link DiagnosticFloatingInfo Normal

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.