mirror of
https://github.com/hrsh7th/nvim-cmp
synced 2024-09-16 20:54:03 +02:00
Favor existing values in completion_item over resovled_completion_item (#1725)
This commit is contained in:
parent
13451e7ee4
commit
43b460a2bd
1 changed files with 1 additions and 1 deletions
|
@ -421,7 +421,7 @@ entry.get_completion_item = function(self)
|
|||
if self.resolved_completion_item then
|
||||
local completion_item = misc.copy(self.completion_item)
|
||||
for k, v in pairs(self.resolved_completion_item) do
|
||||
completion_item[k] = v or completion_item[k]
|
||||
completion_item[k] = completion_item[k] or v
|
||||
end
|
||||
return completion_item
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue