Skip to content

Commit 774d557

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 e374360 commit 774d557

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' })
@@ -462,7 +463,6 @@ theme.set_highlights = function()
462463
hl(0, "@lsp.type.interface.typescriptreact", { fg = c.cyan, bg = 'NONE' })
463464
hl(0, "@lsp.type.namespace.typescriptreact", { fg = c.cyan, bg = 'NONE' })
464465
hl(0, "@lsp.typemod.variable.readonly.typescriptreact", { fg = c.blue_3, bg = 'NONE' })
465-
hl(0, "@keyword.import.tsx", { fg = c.purple, bg = 'NONE' })
466466
hl(0, "@tag.builtin.tsx", { link = 'Tag' })
467467

468468

@@ -474,9 +474,6 @@ theme.set_highlights = function()
474474
hl(0, "@tag.tsx", { fg = c.cyan, bg = 'NONE' })
475475
hl(0, "@tag.jsx", { fg = c.cyan, bg = 'NONE' })
476476

477-
-- Javascript
478-
hl(0, "@keyword.import.javascript", { fg = c.purple, bg = 'NONE' })
479-
480477
-- CSS
481478
hl(0, "@string.special.css", { fg = c.dark_yellow, bg = 'NONE' })
482479
hl(0, "@type.definition.css", { fg = c.blue_2, bg = 'NONE' })

0 commit comments

Comments
 (0)