Skip to content

Commit ba384dd

Browse files
committed
fix: recipe for setting kind icon and name
1 parent 6fd9ca1 commit ba384dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/recipes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,13 @@ sources.providers.snippets.should_show_items = function(ctx)
312312
end
313313
```
314314

315-
### Set source icon and name
315+
### Set source kind icon and name
316316

317317
```lua
318318
sources.providers.copilot.transform_items = function(ctx, items)
319319
for _, item in ipairs(items) do
320-
item.source_icon = ''
321-
item.source_name = 'Copilot'
320+
item.kind_icon = ''
321+
item.kind_name = 'Copilot'
322322
end
323323
return items
324324
end

0 commit comments

Comments
 (0)