Skip to content

Commit 5175183

Browse files
committed
Add highlight groups for LSP semantic tokens
1 parent 0a0deac commit 5175183

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

colors/melange.lua

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,32 @@ for name, attrs in pairs {
259259

260260
---- :help lsp-highlight -----------------------------------
261261

262-
LspReferenceText = 'Visual',
263-
LspReferenceRead = 'Visual',
264-
LspReferenceWrite = 'Visual',
262+
-- LspReferenceText = 'Visual',
263+
-- LspReferenceRead = 'Visual',
264+
-- LspReferenceWrite = 'Visual',
265+
265266
-- TODO: lsp-highlight-codelens
266267

267-
--- :help vimtex-syntax-reference (external plugin) --------
268+
---- :help lsp-semantic-highlight --------------------------
269+
270+
-- ['@lsp.type.class'] = 'Structure',
271+
-- ['@lsp.type.comment'] = 'Comment',
272+
-- ['@lsp.type.decorator'] = 'Function',
273+
-- ['@lsp.type.enum'] = 'Structure',
274+
-- ['@lsp.type.enumMember'] = 'Constant',
275+
-- ['@lsp.type.function'] = 'Function',
276+
-- ['@lsp.type.interface'] = 'Structure',
277+
['@lsp.type.macro'] = 'Function',
278+
-- ['@lsp.type.method'] = 'Function',
279+
['@lsp.type.namespace'] = { fg = c.green },
280+
['@lsp.type.parameter'] = { fg = a.fg, bold = bold },
281+
-- ['@lsp.type.property'] = 'Identifier',
282+
-- ['@lsp.type.struct'] = 'Structure',
283+
-- ['@lsp.type.type'] = 'Type',
284+
-- ['@lsp.type.typeParameter'] = 'TypeDef',
285+
['@lsp.type.variable'] = 'Identifier',
286+
287+
---- :help vimtex-syntax-reference (external plugin) -------
268288

269289
texOptSep = '@punctuation.delimiter',
270290
texOptEqual = 'Operator',

0 commit comments

Comments
 (0)