aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCaleb Marshall <caleb@mrshl.net>2024-03-09 14:23:25 -0600
committerChristian Clason <c.clason@uni-graz.at>2024-03-16 20:37:56 +0800
commit542c910a1d3ffd29b59278b740abd7487315cb47 (patch)
treeca1cf6062652d30485797352aac7e364c65f5e2c /src
parentee89ba1d7531b184d5abc6b311db258da26bae42 (diff)
downloadrneovim-542c910a1d3ffd29b59278b740abd7487315cb47.tar.gz
rneovim-542c910a1d3ffd29b59278b740abd7487315cb47.tar.bz2
rneovim-542c910a1d3ffd29b59278b740abd7487315cb47.zip
fix(lsp): add missing LSP semantic token highlight links
Added the following LSP semantic token types to be linked to highlight groups by default: * @lsp.type.event * @lsp.type.keyword * @lsp.type.modifier * @lsp.type.number * @lsp.type.operator * @lsp.type.regexp * @lsp.type.string
Diffstat (limited to 'src')
-rw-r--r--src/nvim/highlight_group.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c
index 1474a2ba06..682df8bcb5 100644
--- a/src/nvim/highlight_group.c
+++ b/src/nvim/highlight_group.c
@@ -290,13 +290,20 @@ static const char *highlight_init_both[] = {
"default link @lsp.type.decorator @attribute",
"default link @lsp.type.enum @type",
"default link @lsp.type.enumMember @constant",
+ "default link @lsp.type.event @type",
"default link @lsp.type.function @function",
"default link @lsp.type.interface @type",
+ "default link @lsp.type.keyword @keyword",
"default link @lsp.type.macro @constant.macro",
"default link @lsp.type.method @function.method",
+ "default link @lsp.type.modifier @type.qualifier",
"default link @lsp.type.namespace @module",
+ "default link @lsp.type.number @number",
+ "default link @lsp.type.operator @operator",
"default link @lsp.type.parameter @variable.parameter",
"default link @lsp.type.property @property",
+ "default link @lsp.type.regexp @string.regexp",
+ "default link @lsp.type.string @string",
"default link @lsp.type.struct @type",
"default link @lsp.type.type @type",
"default link @lsp.type.typeParameter @type.definition",