From f9c58ab26a427883965394959276fd347574b11e Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Sat, 2 Nov 2024 18:00:08 -0400 Subject: [PATCH] feat: add label details to all draw functions closes #97 --- lua/blink/cmp/windows/autocomplete.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/blink/cmp/windows/autocomplete.lua b/lua/blink/cmp/windows/autocomplete.lua index 4d96df08..92c0fa98 100644 --- a/lua/blink/cmp/windows/autocomplete.lua +++ b/lua/blink/cmp/windows/autocomplete.lua @@ -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, @@ -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,