From 9f035559defd9d575f37fd825954610065d9cf96 Mon Sep 17 00:00:00 2001 From: John Drouhard Date: Wed, 23 Nov 2022 10:06:36 -0600 Subject: 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 --- src/nvim/highlight_group.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src') 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 }; -- cgit