aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Drouhard <john@drouhard.dev>2022-11-23 10:06:36 -0600
committerJohn Drouhard <john@drouhard.dev>2022-12-08 11:31:56 -0600
commit9f035559defd9d575f37fd825954610065d9cf96 (patch)
tree53d4bb16095fafb481aacdfe6e52febbfd66327c /src
parent5e0c74cd82ce75510b15e63a1b0b51cf70cdf47f (diff)
downloadrneovim-9f035559defd9d575f37fd825954610065d9cf96.tar.gz
rneovim-9f035559defd9d575f37fd825954610065d9cf96.tar.bz2
rneovim-9f035559defd9d575f37fd825954610065d9cf96.zip
feat(lsp): initial support for semantic token highlighting
* credit to @smolck and @theHamsta for their contributions in laying the groundwork for this feature and for their work on some of the helper utility functions and tests
Diffstat (limited to 'src')
-rw-r--r--src/nvim/highlight_group.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c
index 2e60d6a570..c4649ac91c 100644
--- a/src/nvim/highlight_group.c
+++ b/src/nvim/highlight_group.c
@@ -258,12 +258,23 @@ static const char *highlight_init_both[] = {
"default link @type Type",
"default link @type.definition Typedef",
"default link @storageclass StorageClass",
- "default link @structure Structure",
"default link @namespace Identifier",
"default link @include Include",
"default link @preproc PreProc",
"default link @debug Debug",
"default link @tag Tag",
+
+ // LSP semantic tokens
+ "default link @class Structure",
+ "default link @struct Structure",
+ "default link @enum Type",
+ "default link @enumMember Constant",
+ "default link @event Identifier",
+ "default link @interface Identifier",
+ "default link @modifier Identifier",
+ "default link @regexp SpecialChar",
+ "default link @typeParameter Type",
+ "default link @decorator Identifier",
NULL
};