Skip to content

Commit a37c99b

Browse files
committed
feat(context_bar): add highlights
1 parent a711fd9 commit a37c99b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lua/opencode/ui/highlight.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ function M.setup()
2222
vim.api.nvim_set_hl(0, 'OpencodeContextualActions', { bg = '#90A4AE', fg = '#1976D2', bold = true, default = true })
2323
vim.api.nvim_set_hl(0, 'OpencodeInputLegend', { bg = '#757575', fg = '#424242', bold = false, default = true })
2424
vim.api.nvim_set_hl(0, 'OpencodeHint', { link = 'Comment', default = true })
25+
vim.api.nvim_set_hl(0, 'OpencodeContext', { fg = '#3b4261', default = true })
26+
vim.api.nvim_set_hl(0, 'OpencodeContextBar', { fg = '#3b4261', default = true })
27+
vim.api.nvim_set_hl(0, 'OpencodeContextCurrentFile', { link = 'Comment', default = true })
28+
vim.api.nvim_set_hl(0, 'OpencodeContextAgent', { link = 'Comment', default = true })
29+
vim.api.nvim_set_hl(0, 'OpencodeContextSelection', { link = 'Visual', default = true })
30+
vim.api.nvim_set_hl(0, 'OpencodeContextError', { link = 'DiagnosticError', default = true })
31+
vim.api.nvim_set_hl(0, 'OpencodeContextWarning', { link = 'DiagnosticWarn', default = true })
32+
vim.api.nvim_set_hl(0, 'OpencodeContextInfo', { link = 'DiagnosticInfo', default = true })
2533
else
2634
vim.api.nvim_set_hl(0, 'OpencodeBorder', { fg = '#616161', default = true })
2735
vim.api.nvim_set_hl(0, 'OpencodeBackground', { link = 'Normal', default = true })
@@ -41,6 +49,14 @@ function M.setup()
4149
vim.api.nvim_set_hl(0, 'OpencodeContextualActions', { bg = '#3b4261', fg = '#61AFEF', bold = true, default = true })
4250
vim.api.nvim_set_hl(0, 'OpencodeInputLegend', { bg = '#616161', fg = '#CCCCCC', bold = false, default = true })
4351
vim.api.nvim_set_hl(0, 'OpencodeHint', { link = 'Comment', default = true })
52+
vim.api.nvim_set_hl(0, 'OpencodeContext', { fg = '#3b4261', default = true })
53+
vim.api.nvim_set_hl(0, 'OpencodeContextBar', { fg = '#3b4261', default = true })
54+
vim.api.nvim_set_hl(0, 'OpencodeContextCurrentFile', { link = 'Comment', default = true })
55+
vim.api.nvim_set_hl(0, 'OpencodeContextAgent', { link = 'Comment', default = true })
56+
vim.api.nvim_set_hl(0, 'OpencodeContextSelection', { link = 'Visual', default = true })
57+
vim.api.nvim_set_hl(0, 'OpencodeContextError', { link = 'DiagnosticError', default = true })
58+
vim.api.nvim_set_hl(0, 'OpencodeContextWarning', { link = 'DiagnosticWarn', default = true })
59+
vim.api.nvim_set_hl(0, 'OpencodeContextInfo', { link = 'DiagnosticInfo', default = true })
4460
end
4561
end
4662

0 commit comments

Comments
 (0)