File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,29 +95,14 @@ local presets = {
9595 },
9696}
9797
98- local deprecated_warning_shown = false
99-
10098--- Get icon by key, honoring preset and user overrides
10199--- @param key string
102100--- @return string
103101function M .get (key )
104102 local ui = (config .ui or {})
105103 local icons_cfg = ui .icons or {}
106- if icons_cfg .preset == ' emoji' then
107- icons_cfg .preset = nil
108- if not deprecated_warning_shown then
109- vim .schedule (function ()
110- vim .notify (
111- " [opencode] 'emoji' preset is deprecated. Using 'nerdfonts' preset instead. Please update your configuration." ,
112- vim .log .levels .WARN ,
113- { title = ' Opencode' }
114- )
115- end )
116- deprecated_warning_shown = true
117- end
118- end
119104 local preset_name = icons_cfg .preset or ' nerdfonts'
120- local preset = presets [preset_name ] or presets .emoji
105+ local preset = presets [preset_name ] or presets .nerdfonts
121106
122107 -- user overrides table: icons = { overrides = { key = 'value' } }
123108 local override = icons_cfg .overrides and icons_cfg .overrides [key ]
You can’t perform that action at this time.
0 commit comments