Skip to content

Commit

Permalink
Fix dup assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsh7th committed Aug 21, 2021
1 parent 8ad9cf0 commit f3a5491
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 @@ -242,13 +242,13 @@ entry.get_vim_item = function(self, suggest_offset)
abbr = abbr,
kind = types.lsp.CompletionItemKind[self:get_kind()] or types.lsp.CompletionItemKind[1],
menu = menu,
dup = self.completion_item.dup or 1,
}
if config.get().formatting.format then
vim_item = config.get().formatting.format(self, vim_item)
end
vim_item.equal = 1
vim_item.empty = 1
vim_item.dup = self.completion_item.dup or 1
vim_item.user_data = { cmp = self.id }

return vim_item
Expand Down

0 comments on commit f3a5491

Please sign in to comment.