From f7821ef42eefd8ca950c61f2d3110a9bc50742aa Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Tue, 16 May 2023 19:22:45 +0100 Subject: [PATCH] feat(vim): add completion source name to completion menu We have the kind of the completion item in the menu as an icon and the name at the end. Now the end one has been replaced with the source name so we can see what the completion item is and where it is from. --- site-modules/core/files/vim/plugin/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-modules/core/files/vim/plugin/completion.lua b/site-modules/core/files/vim/plugin/completion.lua index dc8af6b..d5f5e70 100644 --- a/site-modules/core/files/vim/plugin/completion.lua +++ b/site-modules/core/files/vim/plugin/completion.lua @@ -81,7 +81,7 @@ cmp.setup({ end vim_item.menu = icons[vim_item.kind] or " " - vim_item.kind = "(" .. vim_item.kind .. ")" + vim_item.kind = "(" .. entry.source.name .. ")" return vim_item end, },