diff --git a/README.md b/README.md index 1e5c810a..17f799d5 100644 --- a/README.md +++ b/README.md @@ -950,7 +950,6 @@ keymap = { [''] = { function(cmp) cmp.accept({ index = 7 }) end }, [''] = { function(cmp) cmp.accept({ index = 8 }) end }, [''] = { function(cmp) cmp.accept({ index = 9 }) end }, - [''] = { function(cmp) cmp.accept({ index = 10 }) end }, }, completion = { menu = { @@ -958,15 +957,7 @@ completion = { columns = { { 'item_idx' }, { 'kind_icon' }, { 'label', 'label_description', gap = 1 } }, components = { item_idx = { - text = function(ctx) - if ctx.idx == 10 then - return '0' - elseif ctx.idx > 10 then - return ' ' - else - return tostring(ctx.idx) - end - 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 } }