Skip to content

Commit

Permalink
Add highlight groups for LSP semantic tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
savq committed Aug 11, 2023
1 parent 0a0deac commit 5175183
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions colors/melange.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,32 @@ for name, attrs in pairs {

---- :help lsp-highlight -----------------------------------

LspReferenceText = 'Visual',
LspReferenceRead = 'Visual',
LspReferenceWrite = 'Visual',
-- LspReferenceText = 'Visual',
-- LspReferenceRead = 'Visual',
-- LspReferenceWrite = 'Visual',

-- TODO: lsp-highlight-codelens

--- :help vimtex-syntax-reference (external plugin) --------
---- :help lsp-semantic-highlight --------------------------

-- ['@lsp.type.class'] = 'Structure',
-- ['@lsp.type.comment'] = 'Comment',
-- ['@lsp.type.decorator'] = 'Function',
-- ['@lsp.type.enum'] = 'Structure',
-- ['@lsp.type.enumMember'] = 'Constant',
-- ['@lsp.type.function'] = 'Function',
-- ['@lsp.type.interface'] = 'Structure',
['@lsp.type.macro'] = 'Function',
-- ['@lsp.type.method'] = 'Function',
['@lsp.type.namespace'] = { fg = c.green },
['@lsp.type.parameter'] = { fg = a.fg, bold = bold },
-- ['@lsp.type.property'] = 'Identifier',
-- ['@lsp.type.struct'] = 'Structure',
-- ['@lsp.type.type'] = 'Type',
-- ['@lsp.type.typeParameter'] = 'TypeDef',
['@lsp.type.variable'] = 'Identifier',

---- :help vimtex-syntax-reference (external plugin) -------

texOptSep = '@punctuation.delimiter',
texOptEqual = 'Operator',
Expand Down

0 comments on commit 5175183

Please sign in to comment.