Skip to content

Commit 84e2481

Browse files
committed
feat: change icons preset to nerdfonts
1 parent 5eca57d commit 84e2481

3 files changed

Lines changed: 26 additions & 2 deletions

File tree

lua/opencode/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ M.defaults = {
7777
display_cost = true,
7878
window_highlight = 'Normal:OpencodeBackground,FloatBorder:OpencodeBorder',
7979
icons = {
80-
preset = 'emoji',
80+
preset = 'nerdfonts',
8181
overrides = {},
8282
},
8383
output = {

lua/opencode/types.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
---@field display_context_size boolean
9595
---@field display_cost boolean
9696
---@field window_highlight string
97-
---@field icons { preset: 'emoji'|'text', overrides: table<string,string> }
97+
---@field icons { preset: 'emoji'|'text'|'nerdfonts', overrides: table<string,string> }
9898
---@field output { tools: { show_output: boolean } }
9999
---@field input { text: { wrap: boolean } }
100100
---@field completion OpencodeCompletionConfig

lua/opencode/ui/icons.lua

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,30 @@ local presets = {
2828
-- borders and misc
2929
border = '',
3030
},
31+
nerdfonts = {
32+
-- headers
33+
header_user = '▌󰭻 ',
34+
header_assistant = '',
35+
-- actions/tools
36+
run = '',
37+
task = '',
38+
read = '',
39+
edit = '',
40+
write = '',
41+
plan = '󰝖 ',
42+
search = '',
43+
web = '󰖟 ',
44+
list = '',
45+
tool = '',
46+
snapshot = '󰻛 ',
47+
restore_point = '󱗚 ',
48+
file = '',
49+
-- statuses
50+
status_on = '',
51+
status_off = '',
52+
-- borders and misc
53+
border = '',
54+
},
3155
text = {
3256
-- headers
3357
header_user = '▌$ ',

0 commit comments

Comments
 (0)