From 26143d7a5c9027f83f797f4cc1ca5bafa418a03d Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 21 Jan 2024 11:13:11 +0100 Subject: fix(treesitter): update @markup default links * use `Special` as default for `@markup.*`, especially `@markup.raw` and `@markup.math` (`@markup` itself is never used) * use `Structure` for `@markup.environment` * highlight all of `@markup.link` as Underlined (otherwise concealed links are invisible) --- src/nvim/highlight_group.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c index e9fd1c3f44..1b2e5d2565 100644 --- a/src/nvim/highlight_group.c +++ b/src/nvim/highlight_group.c @@ -302,17 +302,10 @@ static const char *highlight_init_both[] = { "@markup.strikethrough gui=strikethrough, cterm=strikethrough", "@markup.underline gui=underline, cterm=underline", - "default link @markup.heading Title", - - "default link @markup.raw Comment", - "default link @markup.quote Comment", - "default link @markup.math Comment", - "default link @markup.environment Comment", - - "default link @markup.link Underlined", - "default link @markup.link.label Identifier", - - "default link @markup.list Special", + "default link @markup Special", // fallback for subgroups; never used itself + "default link @markup.heading Title", + "default link @markup.environment Structure", + "default link @markup.link Underlined", "default link @markup.list.checked DiagnosticOk", "default link @markup.list.unchecked DiagnosticWarn", -- cgit