Skip to content

Commit

Permalink
Favor existing values in completion_item over resovled_completion_item (
Browse files Browse the repository at this point in the history
  • Loading branch information
Trildar authored Mar 21, 2024
1 parent 13451e7 commit 43b460a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/cmp/entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43b460a

Please sign in to comment.