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.
This commit is contained in:
parent
ed100f4824
commit
f7821ef42e
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue