diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-10-04 10:52:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 10:52:05 +0200 |
commit | b4c54ffa2216f46f9f0c456c7c53d3f6a66dad15 (patch) | |
tree | 63429d7d4d7f698ebe6013ff42ffe0a3aebdee72 /src | |
parent | 8a9f292991bca7d84a987be7b0eb0fd675a8dbb1 (diff) | |
parent | 088026205ff1672c8a524c1a2fc805ca714d1cf3 (diff) | |
download | rneovim-b4c54ffa2216f46f9f0c456c7c53d3f6a66dad15.tar.gz rneovim-b4c54ffa2216f46f9f0c456c7c53d3f6a66dad15.tar.bz2 rneovim-b4c54ffa2216f46f9f0c456c7c53d3f6a66dad15.zip |
Merge pull request #15894 from gpanders/hardcode-diagnostic-highlights
refactor: define diagnostic highlights in syntax.c
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/syntax.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index d2c94d9fe8..49f54dcfe1 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -6217,6 +6217,26 @@ static const char *highlight_init_both[] = { "default link Delimiter Special", "default link SpecialComment Special", "default link Debug Special", + "default DiagnosticError ctermfg=1 guifg=Red", + "default DiagnosticWarn ctermfg=3 guifg=Orange", + "default DiagnosticInfo ctermfg=4 guifg=LightBlue", + "default DiagnosticHint ctermfg=7 guifg=LightGrey", + "default DiagnosticUnderlineError cterm=underline gui=underline guisp=Red", + "default DiagnosticUnderlineWarn cterm=underline gui=underline guisp=Orange", + "default DiagnosticUnderlineInfo cterm=underline gui=underline guisp=LightBlue", + "default DiagnosticUnderlineHint cterm=underline gui=underline guisp=LightGrey", + "default link DiagnosticVirtualTextError DiagnosticError", + "default link DiagnosticVirtualTextWarn DiagnosticWarn", + "default link DiagnosticVirtualTextInfo DiagnosticInfo", + "default link DiagnosticVirtualTextHint DiagnosticHint", + "default link DiagnosticFloatingError DiagnosticError", + "default link DiagnosticFloatingWarn DiagnosticWarn", + "default link DiagnosticFloatingInfo DiagnosticInfo", + "default link DiagnosticFloatingHint DiagnosticHint", + "default link DiagnosticSignError DiagnosticError", + "default link DiagnosticSignWarn DiagnosticWarn", + "default link DiagnosticSignInfo DiagnosticInfo", + "default link DiagnosticSignHint DiagnosticHint", NULL }; |