Skip to content

Commit 5f21515

Browse files
authored
Merge pull request #233 from MartenBE/fix-copilot-in-dark-mode
Copilot highlight now also works in dark mode
2 parents db200c4 + f892d81 commit 5f21515

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lua/vscode/colors.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ colors.get_colors = function()
5555

5656
vscFoldBackground = '#202d39',
5757

58+
vscSuggestion = '#6A6A6A',
59+
5860
-- Syntax colors
5961
vscGray = '#808080',
6062
vscViolet = '#646695',
@@ -131,6 +133,8 @@ colors.get_colors = function()
131133

132134
vscFoldBackground = '#e6f3ff',
133135

136+
vscSuggestion = '#868686',
137+
134138
-- Syntax colors
135139
vscGray = '#000000',
136140
vscViolet = '#000080',

lua/vscode/theme.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,9 @@ theme.set_highlights = function(opts)
757757
hl(0, 'MiniStatuslineModeReplace', { fg = c.vscBack, bg = c.vscYellowOrange, bold = true })
758758
hl(0, 'MiniStatuslineModeVisual', { fg = c.vscBack, bg = c.vscPink, bold = true })
759759

760+
-- Copilot
761+
hl(0, 'CopilotSuggestion', { fg = c.vscSuggestion, bg = 'NONE' })
762+
760763
-- NeogitOrg/neogit
761764
hl(0, 'NeogitWinSeparator', { link = 'WinSeparator' })
762765
if isDark then
@@ -868,9 +871,6 @@ theme.set_highlights = function(opts)
868871
hl(0, 'CocMenuSel', { fg = '#FFFFFF', bg = '#285EBA' })
869872
hl(0, 'CocSearch', { fg = '#2A64B9', bg = 'NONE' })
870873

871-
-- Copilot
872-
hl(0, 'CopilotSuggestion', { fg = c.vscGray, bg = 'NONE' })
873-
874874
-- symbols-outline
875875
-- white fg and lualine blue bg
876876
hl(0, 'FocusedSymbol', { fg = c.vscBack, bg = '#AF00DB' })

0 commit comments

Comments
 (0)