From 28573796461564a9a877ddba8ed396992b42c4fa Mon Sep 17 00:00:00 2001 From: mvllow Date: Sun, 8 Jan 2023 19:42:25 -0500 Subject: [PATCH] wip: update semantic tokens --- lua/rose-pine/theme.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lua/rose-pine/theme.lua b/lua/rose-pine/theme.lua index 5261d94..236bfdf 100644 --- a/lua/rose-pine/theme.lua +++ b/lua/rose-pine/theme.lua @@ -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 })