I have a custom color scheme and I've provided colors for LSPDiagnostics and Errors, but none of them are working. enter image description here

As seen, errors should be red, but the errors I see are yellowish in color enter image description here

Tried a bunch of other highlight groups, but nothing seems to work.

I'm using neovim version 0.10 (which is the version that broke the LSP colors).

1 Answer 1


I believe the highlighting group to use is: DiagnosticVirtualTextError.

Since like:

  • DiagnosticFloatingError
  • DiagnosticSignError
  • DiagnosticVirtualTextError
  • NvimTreeDiagnosticErrorIcon it is, by default, linked to DiagnosticError.

It is probably wise to modify DiagnosticError instead.

You have the same kind of highlighting groups for the other families:

  • Error
  • Warn
  • Info
  • Hint
  • Ok

Remark: I have used :hi command to find the potential culprits based on the color of the actual message.

  • This was it. Thanks
    – Riptide
    Commented Jun 12 at 9:22
  • Thanks for the feedback :-) Commented Jun 12 at 9:56

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.