Skip to content

Commit

Permalink
feat: add label details to all draw functions
Browse files Browse the repository at this point in the history
closes #97
  • Loading branch information
Saghen committed Nov 2, 2024
1 parent 3a096f3 commit f9c58ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/blink/cmp/windows/autocomplete.lua
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ function autocomplete.draw_item_reversed(ctx)
{
ctx.label,
ctx.kind == 'Snippet' and '~' or nil,
(ctx.item.labelDetails and ctx.item.labelDetails.detail) and ctx.item.labelDetails.detail or '',
fill = true,
hl_group = ctx.deprecated and 'BlinkCmpLabelDeprecated' or 'BlinkCmpLabel',
max_width = 50,
Expand All @@ -415,6 +416,7 @@ function autocomplete.draw_item_minimal(ctx)
{
ctx.label,
ctx.kind == 'Snippet' and '~' or nil,
(ctx.item.labelDetails and ctx.item.labelDetails.detail) and ctx.item.labelDetails.detail or '',
fill = true,
hl_group = ctx.deprecated and 'BlinkCmpLabelDeprecated' or 'BlinkCmpLabel',
max_width = 50,
Expand Down

0 comments on commit f9c58ab

Please sign in to comment.