Skip to content

Commit

Permalink
Add @keyword.import highlighting group
Browse files Browse the repository at this point in the history
This commit introduces a new highlighting group, `@keyword.import`,
to provide consistent highlighting for the "import" keyword across
different file types.
  • Loading branch information
VolodymyrVorona committed Jun 12, 2024
1 parent 0e51e54 commit 34a66d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/darkplus/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
Expand Down Expand Up @@ -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' })


Expand All @@ -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' })
Expand Down

0 comments on commit 34a66d3

Please sign in to comment.