wip: update semantic tokens

This commit is contained in:
mvllow 2023-01-08 19:42:25 -05:00
commit 2857379646
No known key found for this signature in database

View file

@ -200,6 +200,7 @@ function M._load(options)
h('@attribute', { link = 'PreProc' })
h('@boolean', { link = 'Boolean' })
h('@character', { link = 'Character' })
h('@class', { fg = p.foam })
h('@comment', { link = 'Comment' })
h('@conditional', { link = 'Conditional' })
h('@constant', { fg = p.foam })
@ -208,6 +209,7 @@ function M._load(options)
h('@field', { fg = p.foam })
h('@function', { fg = p.rose })
h('@function.builtin', { fg = p.love })
-- h('@defaultLibrary', {})
h('@include', { fg = p.pine })
h('@keyword', { fg = p.pine })
h('@keyword.operator', { fg = p.subtle })
@ -216,7 +218,7 @@ function M._load(options)
h('@number', { link = 'Number' })
h('@operator', { fg = p.subtle })
h('@parameter', { fg = p.iris, italic = maybe.italic })
h('@property', { fg = p.iris, italic = maybe.italic })
h('@property', { fg = p.foam, italic = maybe.italic })
h('@punctuation.bracket', { fg = groups.punctuation })
h('@punctuation.delimiter', { fg = groups.punctuation })
h('@punctuation.special', { fg = groups.punctuation })
@ -244,6 +246,15 @@ function M._load(options)
h('@type', { link = 'Type' })
h('@variable', { fg = p.text, italic = maybe.italic })
h('@variable.builtin', { fg = p.love })
-- h('@struct', {})
-- h('@enum', {})
-- h('@enumMember', {})
-- h('@event', {})
-- h('@interface', {})
-- h('@modifier', {})
-- h('@regexp', {})
-- h('@typeParameter', {})
-- h('@decorator', {})
-- vim.lsp.buf.document_highlight()
h('LspReferenceText', { bg = p.highlight_med })