diff --git a/lua/cmp/entry.lua b/lua/cmp/entry.lua index c478140..ab03753 100644 --- a/lua/cmp/entry.lua +++ b/lua/cmp/entry.lua @@ -383,7 +383,7 @@ entry.match = function(self, input, matching_config) end if self:get_filter_text() ~= self:get_completion_item().label then - _, matches = matcher.match(input, self:get_completion_item().label, { self:get_word() }) + _, matches = matcher.match(input, self:get_completion_item().label, { synonyms = { self:get_word() } }) end return { score = score, matches = matches }