Skip to content

Commit 34a66d3

Browse files
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.
1 parent 0e51e54 commit 34a66d3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lua/darkplus/theme.lua

+1-4
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ theme.set_highlights = function()
155155
hl(0, "@keyword.repeat", { link = 'Include' })
156156
hl(0, "@keyword.coroutine", { link = 'Include' })
157157
hl(0, "@keyword.conditional", { link = 'Conditional' })
158+
hl(0, "@keyword.import", { link = 'Include' })
158159
hl(0, "@conditional", { link = 'Conditional' })
159160
hl(0, "@repeat", { link = 'Repeat' })
160161
hl(0, "@debug", { link = 'Debug' })
@@ -471,7 +472,6 @@ theme.set_highlights = function()
471472
hl(0, "@lsp.type.interface.typescriptreact", { fg = c.cyan, bg = 'NONE' })
472473
hl(0, "@lsp.type.namespace.typescriptreact", { fg = c.cyan, bg = 'NONE' })
473474
hl(0, "@lsp.typemod.variable.readonly.typescriptreact", { fg = c.blue_3, bg = 'NONE' })
474-
hl(0, "@keyword.import.tsx", { fg = c.purple, bg = 'NONE' })
475475
hl(0, "@tag.builtin.tsx", { link = 'Tag' })
476476

477477

@@ -483,9 +483,6 @@ theme.set_highlights = function()
483483
hl(0, "@tag.tsx", { fg = c.cyan, bg = 'NONE' })
484484
hl(0, "@tag.jsx", { fg = c.cyan, bg = 'NONE' })
485485

486-
-- Javascript
487-
hl(0, "@keyword.import.javascript", { fg = c.purple, bg = 'NONE' })
488-
489486
-- CSS
490487
hl(0, "@string.special.css", { fg = c.dark_yellow, bg = 'NONE' })
491488
hl(0, "@type.definition.css", { fg = c.blue_2, bg = 'NONE' })

0 commit comments

Comments
 (0)