Skip to content

Commit

Permalink
(mini.hues) Add small tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
echasnovski committed Jan 22, 2024
1 parent 1d8b6d2 commit ea69394
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lua/mini/hues.lua
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ H.apply_colorscheme = function(config)
hi('Special', { fg=p.cyan, bg=nil })
hi('SpecialChar', { link='Special' })
hi('SpecialComment', { link='Special' })
hi('Statement', { fg=nil, bg=nil, bold=true })
hi('Statement', { fg=p.fg, bg=nil, bold=true })
hi('StorageClass', { link='Type' })
hi('String', { fg=p.green, bg=nil })
hi('Structure', { link='Type' })
Expand All @@ -757,9 +757,9 @@ H.apply_colorscheme = function(config)
hi('Typedef', { link='Type' })

-- Other community standard
hi('Bold', { fg=nil, bg=nil, bold=true })
hi('Italic', { fg=nil, bg=nil, italic=true })
hi('Underlined', { fg=nil, bg=nil, underline=true })
hi('Bold', { fg=nil, bg=nil, bold=true })
hi('Italic', { fg=nil, bg=nil, italic=true })
hi('Underlined', { fg=nil, bg=nil, underline=true })

-- Patch diff
hi('diffAdded', { fg=p.green, bg=nil })
Expand Down Expand Up @@ -845,14 +845,14 @@ H.apply_colorscheme = function(config)
hi('@text.reference', { link='Identifier' })
hi('@text.title', { link='Title' })
hi('@text.uri', { link='Underlined' })
hi('@text.underline', { link='Underlined' })
hi('@text.todo', { link='Todo' })
hi('@text.note', { link='MoreMsg' })
hi('@text.warning', { link='WarningMsg' })
hi('@text.danger', { link='ErrorMsg' })
hi('@text.strong', { fg=nil, bg=nil, bold=true })
hi('@text.emphasis', { fg=nil, bg=nil, italic=true })
hi('@text.strike', { fg=nil, bg=nil, strikethrough=true })
hi('@text.underline', { link='Underlined' })

hi('@comment', { link='Comment' })
hi('@punctuation', { link='Delimiter' })
Expand All @@ -872,8 +872,8 @@ H.apply_colorscheme = function(config)
hi('@float', { link='Float' })

hi('@function', { link='Function' })
hi('@function.call', { link='Function' })
hi('@function.builtin', { link='Special' })
hi('@function.call', { link='Function' })
hi('@function.macro', { link='Macro' })
hi('@parameter', { fg=p.blue, bg=nil })
hi('@method', { link='Function' })
Expand Down Expand Up @@ -903,28 +903,28 @@ H.apply_colorscheme = function(config)
hi('@debug', { link='Debug' })
hi('@tag', { link='Tag' })

hi('@symbol', { link='Keyword' })
hi('@symbol', { link='Keyword' })
hi('@none', { link='Normal'})
end

-- Semantic tokens
if vim.fn.has('nvim-0.9') == 1 then
-- Source: `:h lsp-semantic-highlight`
hi('@lsp.type.class', { link='Structure' })
hi('@lsp.type.class', { link='@structure' })
hi('@lsp.type.decorator', { link='@function' })
hi('@lsp.type.enum', { link='@type' })
hi('@lsp.type.enumMember', { link='@constant' })
hi('@lsp.type.function', { link='@function' })
hi('@lsp.type.interface', { link='@lsp.type' })
hi('@lsp.type.macro', { link='Macro' })
hi('@lsp.type.interface', { link='@lsp.type.class' })
hi('@lsp.type.macro', { link='@macro' })
hi('@lsp.type.method', { link='@method' })
hi('@lsp.type.namespace', { link='@namespace' })
hi('@lsp.type.parameter', { link='@parameter' })
hi('@lsp.type.property', { link='@property' })
hi('@lsp.type.struct', { link='@structure' })
hi('@lsp.type.type', { link='@type' })
hi('@lsp.type.typeParameter', { link='@type.definition' })
-- - Use variant defined in tree-sitter
hi('@lsp.type.variable', {})
hi('@lsp.type.variable', { link='@variable' })

hi('@lsp.mod.defaultLibrary', { link='Special' })
hi('@lsp.mod.deprecated', { fg=p.red, bg=nil })
Expand Down

0 comments on commit ea69394

Please sign in to comment.