commit 8b2365369503992a56179b2154cdd54836c71b78
parent 0054c185001e54316c0ee36841dfe111878a321d
Author: John Drouhard <john@drouhard.dev>
Date: Sun, 9 Apr 2023 11:52:54 -0500
fix(colorscheme): link LSP semantic tokens to treesitter groups
Diffstat:
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c
@@ -317,22 +317,22 @@ static const char *highlight_init_both[] = {
"default link @tag.delimiter Delimiter",
// LSP semantic tokens
- "default link @lsp.type.class Structure",
- "default link @lsp.type.comment Comment",
- "default link @lsp.type.decorator Function",
- "default link @lsp.type.enum Structure",
- "default link @lsp.type.enumMember Constant",
- "default link @lsp.type.function Function",
- "default link @lsp.type.interface Structure",
- "default link @lsp.type.macro Macro",
- "default link @lsp.type.method Function",
- "default link @lsp.type.namespace Structure",
- "default link @lsp.type.parameter Identifier",
- "default link @lsp.type.property Identifier",
- "default link @lsp.type.struct Structure",
- "default link @lsp.type.type Type",
- "default link @lsp.type.typeParameter TypeDef",
- "default link @lsp.type.variable NONE", // don't highlight to reduce visual overload
+ "default link @lsp.type.class @type",
+ "default link @lsp.type.comment @comment",
+ "default link @lsp.type.decorator @attribute",
+ "default link @lsp.type.enum @type",
+ "default link @lsp.type.enumMember @constant",
+ "default link @lsp.type.function @function",
+ "default link @lsp.type.interface @type",
+ "default link @lsp.type.macro @constant.macro",
+ "default link @lsp.type.method @function.method",
+ "default link @lsp.type.namespace @module",
+ "default link @lsp.type.parameter @variable.parameter",
+ "default link @lsp.type.property @property",
+ "default link @lsp.type.struct @type",
+ "default link @lsp.type.type @type",
+ "default link @lsp.type.typeParameter @type.definition",
+ "default link @lsp.type.variable @variable",
NULL
};