We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 255f284 commit 43b2d6dCopy full SHA for 43b2d6d
lua/cmp/config/compare.lua
@@ -243,8 +243,8 @@ compare.scopes = setmetatable({
243
}, {
244
---@type fun(self: table, entry1: cmp.Entry, entry2: cmp.Entry): boolean|nil
245
__call = function(self, entry1, entry2)
246
- local def_depth1 = self.definition_depths[entry1.word]
247
- local def_depth2 = self.definition_depths[entry2.word]
+ local def_depth1 = self.definition_depths[entry1.get_word()]
+ local def_depth2 = self.definition_depths[entry2.get_word()]
248
if def_depth1 ~= def_depth2 then
249
if def_depth1 == nil then
250
return false
0 commit comments