From b617deb91bd0d795deb0ed34b964b550ae0ffc0e Mon Sep 17 00:00:00 2001 From: Nicholas McDaniel Date: Thu, 6 Mar 2025 12:01:31 -0500 Subject: [PATCH] Use brighter highlighting for globals (including file scope) --- lua/coral/highlights/lsp.lua | 3 +++ lua/coral/themes.lua | 1 + 2 files changed, 4 insertions(+) diff --git a/lua/coral/highlights/lsp.lua b/lua/coral/highlights/lsp.lua index a7184b6..c4aaa95 100644 --- a/lua/coral/highlights/lsp.lua +++ b/lua/coral/highlights/lsp.lua @@ -42,6 +42,9 @@ function M.setup(theme, config) ['@lsp.type.typeParameter'] = { link = '@type' }, -- TODO: Determine accuracy ['@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' } } diff --git a/lua/coral/themes.lua b/lua/coral/themes.lua index 856ecbf..75481a7 100644 --- a/lua/coral/themes.lua +++ b/lua/coral/themes.lua @@ -8,6 +8,7 @@ function M.setup(color, config) theme.syntax = { builtin = color.blue0, variable = color.gray2, + global = color.gray4, parameter = color.gray4, constant = color.blue1, macro = color.coral2,