Use brighter highlighting for globals (including file scope)

This commit is contained in:
2025-03-06 12:01:31 -05:00
parent 5a40f441b0
commit b617deb91b
2 changed files with 4 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ function M.setup(theme, config)
['@lsp.type.typeParameter'] = { link = '@type' }, -- TODO: Determine accuracy ['@lsp.type.typeParameter'] = { link = '@type' }, -- TODO: Determine accuracy
['@lsp.type.variable'] = { link = '@variable' }, ['@lsp.type.variable'] = { link = '@variable' },
['@lsp.typemod.variable.globalScope'] = { fg = theme.syntax.global },
['@lsp.typemod.variable.fileScope'] = { fg = theme.syntax.global },
['@lsp.typemod.variable.classScope'] = { link = '@variable.member' },
['@lsp.typemod.variable.defaultLibrary'] = { link = '@variable.builtin' } ['@lsp.typemod.variable.defaultLibrary'] = { link = '@variable.builtin' }
} }

View File

@@ -8,6 +8,7 @@ function M.setup(color, config)
theme.syntax = { theme.syntax = {
builtin = color.blue0, builtin = color.blue0,
variable = color.gray2, variable = color.gray2,
global = color.gray4,
parameter = color.gray4, parameter = color.gray4,
constant = color.blue1, constant = color.blue1,
macro = color.coral2, macro = color.coral2,