Use fallback for displaying completion source
This commit is contained in:
parent
a3353cc601
commit
2bbf7655c9
1 changed files with 3 additions and 1 deletions
|
|
@ -105,7 +105,9 @@ cmp.setup({
|
||||||
formatting = {
|
formatting = {
|
||||||
format = function(entry, vim_item)
|
format = function(entry, vim_item)
|
||||||
if entry.source.name == 'nvim_lsp' then
|
if entry.source.name == 'nvim_lsp' then
|
||||||
vim_item.menu = entry.source.source.client.name
|
vim_item.menu = string.format('[%s]', entry.source.source.client.name)
|
||||||
|
else
|
||||||
|
vim_item.menu = string.format('[%s]', entry.source.name)
|
||||||
end
|
end
|
||||||
|
|
||||||
return vim_item
|
return vim_item
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue