Skip to content

Commit

Permalink
highlights: Add new diagnostic highlights
Browse files Browse the repository at this point in the history
I think these deprecate the lsp highlights, but I'm leaving them just in
case.
  • Loading branch information
savq committed Oct 12, 2021
1 parent 0e4f1b7 commit 05eb1bc
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions lua/melange/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -317,16 +317,40 @@ TSEnvironmentName { PreProc };
-- TSDanger { };


---- :help diagnostic-highlight ----------------------------

DiagnosticError { fg=c.red };
DiagnosticWarn { fg=b.yellow };
DiagnosticInfo { fg=b.blue };
DiagnosticHint { fg=c.green };
-- DiagnosticVirtualTextError { DiagnosticError };
-- DiagnosticVirtualTextWarn { DiagnosticWarn };
-- DiagnosticVirtualTextInfo { DiagnosticInfo };
-- DiagnosticVirtualTextHint { DiagnosticHint };
DiagnosticUnderlineError { gui=undercurl };
DiagnosticUnderlineWarn { gui=undercurl };
DiagnosticUnderlineInfo { gui=undercurl };
DiagnosticUnderlineHint { gui=undercurl };
-- DiagnosticFloatingError { DiagnosticError };
-- DiagnosticFloatingWarn { DiagnosticWarn };
-- DiagnosticFloatingInfo { DiagnosticInfo };
-- DiagnosticFloatingHint { DiagnosticHint };
-- DiagnosticSignError { DiagnosticError };
-- DiagnosticSignWarn { DiagnosticWarn };
-- DiagnosticSignInfo { DiagnosticInfo };
-- DiagnosticSignHint { DiagnosticHint };


---- :help lsp-highlight -----------------------------------

LspReferenceText { Visual };
LspReferenceRead { Visual };
LspReferenceWrite { Visual };

LspDiagnosticsDefaultError { fg=c.red };
LspDiagnosticsDefaultWarning { fg=b.yellow };
LspDiagnosticsDefaultInformation { fg=b.blue };
LspDiagnosticsDefaultHint { fg=c.green};
LspDiagnosticsDefaultError { DiagnosticError };
LspDiagnosticsDefaultWarning { DiagnosticWarn };
LspDiagnosticsDefaultInformation { DiagnosticInfo };
LspDiagnosticsDefaultHint { DiagnosticHint };

-- LspDiagnosticsVirtualTextError { };
-- LspDiagnosticsVirtualTextWarning { };
Expand Down

0 comments on commit 05eb1bc

Please sign in to comment.