diff options
author | John Drouhard <john@drouhard.dev> | 2023-04-09 11:52:54 -0500 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-23 16:59:57 +0100 |
commit | 8b2365369503992a56179b2154cdd54836c71b78 (patch) | |
tree | 138a8a64983cf83bdef6206bfe4947ba98f1f25b | |
parent | 0054c185001e54316c0ee36841dfe111878a321d (diff) | |
download | rneovim-8b2365369503992a56179b2154cdd54836c71b78.tar.gz rneovim-8b2365369503992a56179b2154cdd54836c71b78.tar.bz2 rneovim-8b2365369503992a56179b2154cdd54836c71b78.zip |
fix(colorscheme): link LSP semantic tokens to treesitter groups
-rw-r--r-- | src/nvim/highlight_group.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c index 1b2e5d2565..14c44b0249 100644 --- 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 }; |