From 3c235a315594143cc07a6e5f9e4b593514085dc7 Mon Sep 17 00:00:00 2001 From: fiplox Date: Sun, 9 Apr 2023 18:28:02 +0200 Subject: [PATCH] chore: unused variable --- lua/plugins/cmp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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