Skip to content

Commit ccf02f5

Browse files
committed
fix: add ctx.icon_gap in kind_icon component
1 parent a49ad6f commit ccf02f5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ MiniDeps.add({
433433
components = {
434434
kind_icon = {
435435
ellipsis = false,
436-
text = function(ctx) return ctx.kind_icon end,
436+
text = function(ctx) return ctx.kind_icon .. ctx.icon_gap end,
437437
highlight = function(ctx) return utils.get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind end,
438438
},
439439

lua/blink/cmp/config.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ local config = {
409409
components = {
410410
kind_icon = {
411411
ellipsis = false,
412-
text = function(ctx) return ctx.kind_icon end,
412+
text = function(ctx) return ctx.kind_icon .. ctx.icon_gap end,
413413
highlight = function(ctx) return utils.get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind end,
414414
},
415415

lua/blink/cmp/windows/render/context.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function context.new(draw, item, matched_indices)
4949
label_matched_indices = matched_indices,
5050
kind = kind,
5151
kind_icon = kind_icon,
52-
icon_gap = config.nerd_font_variant == 'mono' and ' ' or ' ',
52+
icon_gap = config.nerd_font_variant == 'mono' and '' or ' ',
5353
deprecated = item.deprecated or (item.tags and vim.tbl_contains(item.tags, 1)) or false,
5454
}
5555
end

0 commit comments

Comments
 (0)