Skip to content

Commit

Permalink
docs: ignore idx >= 10 from select nth from list
Browse files Browse the repository at this point in the history
Closes #646
  • Loading branch information
Saghen committed Dec 19, 2024
1 parent 264aea4 commit 07665c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ completion = {
columns = { { 'item_idx' }, { 'kind_icon' }, { 'label', 'label_description', gap = 1 } },
components = {
item_idx = {
text = function(ctx) return tostring(ctx.idx) end,
text = function(ctx) return ctx.idx >= 10 and ' ' or tostring(ctx.idx) end,
highlight = 'BlinkCmpItemIdx' -- optional, only if you want to change its color
}
}
Expand Down

0 comments on commit 07665c3

Please sign in to comment.