Skip to content

Commit

Permalink
fix: add ctx.icon_gap in kind_icon component
Browse files Browse the repository at this point in the history
  • Loading branch information
lopi-py committed Nov 11, 2024
1 parent a49ad6f commit ccf02f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ MiniDeps.add({
components = {
kind_icon = {
ellipsis = false,
text = function(ctx) return ctx.kind_icon end,
text = function(ctx) return ctx.kind_icon .. ctx.icon_gap end,
highlight = function(ctx) return utils.get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind end,
},

Expand Down
2 changes: 1 addition & 1 deletion lua/blink/cmp/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ local config = {
components = {
kind_icon = {
ellipsis = false,
text = function(ctx) return ctx.kind_icon end,
text = function(ctx) return ctx.kind_icon .. ctx.icon_gap end,
highlight = function(ctx) return utils.get_tailwind_hl(ctx) or 'BlinkCmpKind' .. ctx.kind end,
},

Expand Down
2 changes: 1 addition & 1 deletion lua/blink/cmp/windows/render/context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function context.new(draw, item, matched_indices)
label_matched_indices = matched_indices,
kind = kind,
kind_icon = kind_icon,
icon_gap = config.nerd_font_variant == 'mono' and ' ' or ' ',
icon_gap = config.nerd_font_variant == 'mono' and '' or ' ',
deprecated = item.deprecated or (item.tags and vim.tbl_contains(item.tags, 1)) or false,
}
end
Expand Down

0 comments on commit ccf02f5

Please sign in to comment.