Skip to content

Commit f9c58ab

Browse files
committed
feat: add label details to all draw functions
closes #97
1 parent 3a096f3 commit f9c58ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/blink/cmp/windows/autocomplete.lua

+2
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ function autocomplete.draw_item_reversed(ctx)
392392
{
393393
ctx.label,
394394
ctx.kind == 'Snippet' and '~' or nil,
395+
(ctx.item.labelDetails and ctx.item.labelDetails.detail) and ctx.item.labelDetails.detail or '',
395396
fill = true,
396397
hl_group = ctx.deprecated and 'BlinkCmpLabelDeprecated' or 'BlinkCmpLabel',
397398
max_width = 50,
@@ -415,6 +416,7 @@ function autocomplete.draw_item_minimal(ctx)
415416
{
416417
ctx.label,
417418
ctx.kind == 'Snippet' and '~' or nil,
419+
(ctx.item.labelDetails and ctx.item.labelDetails.detail) and ctx.item.labelDetails.detail or '',
418420
fill = true,
419421
hl_group = ctx.deprecated and 'BlinkCmpLabelDeprecated' or 'BlinkCmpLabel',
420422
max_width = 50,

0 commit comments

Comments
 (0)