Skip to content

Commit

Permalink
fix: css highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmx03 committed Oct 30, 2024
1 parent 0e7156e commit b7d73e2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions after/queries/css/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; extends
((plain_value) @constant (#set! "priority" 125))
(unit) @keyword
(keyframes_name) @variable.parameter
(rule_set
(selectors
(id_selector
(id_name) @function)))
9 changes: 7 additions & 2 deletions colors/dracula-soft.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ hl(0, 'Typedef', { link = 'Statement' })
hl(0, 'Special', { fg = colors.red })
hl(0, 'SpecialChar', { fg = colors.purple })
hl(0, 'Tag', { fg = colors.pink })
hl(0, 'TagAttribute', { fg = colors.pink })
hl(0, 'TagDelimiter', { fg = colors.green })
hl(0, 'TagAttribute', { fg = colors.green })
hl(0, 'TagDelimiter', { fg = colors.base0 })
hl(0, 'Delimiter', { fg = colors.base0 })
hl(0, 'SpecialComment', { fg = colors.pink })
hl(0, 'Debug', { fg = colors.pink })
Expand All @@ -192,6 +192,8 @@ if config.plugins['nvim-treesitter'] then
hl(0, '@property', { link = 'Property' })
hl(0, '@property.json', { fg = colors.cyan })
hl(0, '@property.yaml', { fg = colors.cyan })
hl(0, '@property.css', { fg = colors.cyan })
hl(0, '@property.scss', { fg = colors.cyan })
hl(0, '@constant', { link = 'Constant' })
hl(0, '@constant.builtin', { link = 'Constant' })
hl(0, '@constant.macro', { link = 'Constant' })
Expand All @@ -208,8 +210,11 @@ if config.plugins['nvim-treesitter'] then
hl(0, '@string.special.url', { link = 'Underlined' })
hl(0, '@character', { link = 'Constant' })
hl(0, '@character.special', { link = 'Constant' })
hl(0, '@character.special.scss', { link = 'Keyword' })
hl(0, '@character.printf', { link = 'Keyword' })
hl(0, '@type', { link = 'Type' })
hl(0, '@type.css', { fg = colors.green })
hl(0, '@type.scss', { fg = colors.green })
hl(0, '@type.builtin', { link = 'Keyword' })
hl(0, '@type.definition', { link = 'Type' })
hl(0, '@type.qualifier', { link = 'Type' })
Expand Down
5 changes: 5 additions & 0 deletions colors/dracula.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ if config.plugins['nvim-treesitter'] then
hl(0, '@property', { link = 'Property' })
hl(0, '@property.json', { fg = colors.cyan })
hl(0, '@property.yaml', { fg = colors.cyan })
hl(0, '@property.css', { fg = colors.cyan })
hl(0, '@property.scss', { fg = colors.cyan })
hl(0, '@constant', { link = 'Constant' })
hl(0, '@constant.builtin', { link = 'Constant' })
hl(0, '@constant.macro', { link = 'Constant' })
Expand All @@ -208,8 +210,11 @@ if config.plugins['nvim-treesitter'] then
hl(0, '@string.special.url', { link = 'Underlined' })
hl(0, '@character', { link = 'Constant' })
hl(0, '@character.special', { link = 'Constant' })
hl(0, '@character.special.scss', { link = 'Keyword' })
hl(0, '@character.printf', { link = 'Keyword' })
hl(0, '@type', { link = 'Type' })
hl(0, '@type.css', { fg = colors.green })
hl(0, '@type.scss', { fg = colors.green })
hl(0, '@type.builtin', { link = 'Keyword' })
hl(0, '@type.definition', { link = 'Type' })
hl(0, '@type.qualifier', { link = 'Type' })
Expand Down

0 comments on commit b7d73e2

Please sign in to comment.