From 0e51e54e14cf687f6222bfb6428400e8a3a75a04 Mon Sep 17 00:00:00 2001 From: Volodymyr Vorona Date: Thu, 21 Mar 2024 19:04:28 +0200 Subject: [PATCH 1/2] Add `@keyword.import.javascript` hl group This commit adds a new highlighting group, `@keyword.import.javascript`, to ensure consistency in the appearance of the "import" keyword in `jsx` and `tsx` files. --- lua/darkplus/theme.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/darkplus/theme.lua b/lua/darkplus/theme.lua index 65f8add..bacaeee 100644 --- a/lua/darkplus/theme.lua +++ b/lua/darkplus/theme.lua @@ -483,6 +483,9 @@ theme.set_highlights = function() hl(0, "@tag.tsx", { fg = c.cyan, bg = 'NONE' }) hl(0, "@tag.jsx", { fg = c.cyan, bg = 'NONE' }) + -- Javascript + hl(0, "@keyword.import.javascript", { fg = c.purple, bg = 'NONE' }) + -- CSS hl(0, "@string.special.css", { fg = c.dark_yellow, bg = 'NONE' }) hl(0, "@type.definition.css", { fg = c.blue_2, bg = 'NONE' }) From 34a66d3a06157a6e1f50bd1a417283caeec4052d Mon Sep 17 00:00:00 2001 From: Volodymyr Vorona Date: Fri, 22 Mar 2024 01:03:37 +0200 Subject: [PATCH 2/2] Add `@keyword.import` highlighting group This commit introduces a new highlighting group, `@keyword.import`, to provide consistent highlighting for the "import" keyword across different file types. --- lua/darkplus/theme.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/darkplus/theme.lua b/lua/darkplus/theme.lua index bacaeee..56c22b7 100644 --- a/lua/darkplus/theme.lua +++ b/lua/darkplus/theme.lua @@ -155,6 +155,7 @@ theme.set_highlights = function() hl(0, "@keyword.repeat", { link = 'Include' }) hl(0, "@keyword.coroutine", { link = 'Include' }) hl(0, "@keyword.conditional", { link = 'Conditional' }) + hl(0, "@keyword.import", { link = 'Include' }) hl(0, "@conditional", { link = 'Conditional' }) hl(0, "@repeat", { link = 'Repeat' }) hl(0, "@debug", { link = 'Debug' }) @@ -471,7 +472,6 @@ theme.set_highlights = function() hl(0, "@lsp.type.interface.typescriptreact", { fg = c.cyan, bg = 'NONE' }) hl(0, "@lsp.type.namespace.typescriptreact", { fg = c.cyan, bg = 'NONE' }) hl(0, "@lsp.typemod.variable.readonly.typescriptreact", { fg = c.blue_3, bg = 'NONE' }) - hl(0, "@keyword.import.tsx", { fg = c.purple, bg = 'NONE' }) hl(0, "@tag.builtin.tsx", { link = 'Tag' }) @@ -483,9 +483,6 @@ theme.set_highlights = function() hl(0, "@tag.tsx", { fg = c.cyan, bg = 'NONE' }) hl(0, "@tag.jsx", { fg = c.cyan, bg = 'NONE' }) - -- Javascript - hl(0, "@keyword.import.javascript", { fg = c.purple, bg = 'NONE' }) - -- CSS hl(0, "@string.special.css", { fg = c.dark_yellow, bg = 'NONE' }) hl(0, "@type.definition.css", { fg = c.blue_2, bg = 'NONE' })