diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index abd6403..995083a 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -77,7 +77,7 @@ function M.config() }, formatting = { fields = { 'abbr', 'kind', 'menu' }, - format = function(entry, item) + format = function(_, item) local ELLIPSIS_CHAR = '…' local MAX_LABEL_WIDTH = 20 item.kind = string.format('%s %s', kind_icons[item.kind], item.kind) -- This concatonates the icons with the name of the item kind