Fix #436
This commit is contained in:
@@ -35,7 +35,7 @@ compare.recently_used = setmetatable({
|
||||
records = {},
|
||||
add_entry = function(self, e)
|
||||
self.records[e.completion_item.label] = vim.loop.now()
|
||||
end
|
||||
end,
|
||||
}, {
|
||||
__call = function(self, entry1, entry2)
|
||||
local t1 = self.records[entry1.completion_item.label] or -1
|
||||
@@ -43,7 +43,7 @@ compare.recently_used = setmetatable({
|
||||
if t1 ~= t2 then
|
||||
return t1 > t2
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- kind
|
||||
|
||||
@@ -91,7 +91,7 @@ return function()
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end
|
||||
end,
|
||||
}),
|
||||
['<S-Tab>'] = mapping({
|
||||
c = function(fallback)
|
||||
@@ -105,7 +105,7 @@ return function()
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end
|
||||
end,
|
||||
}),
|
||||
['<C-n>'] = mapping(mapping.select_next_item({ behavior = types.cmp.SelectBehavior.Insert }), { 'i', 'c' }),
|
||||
['<C-p>'] = mapping(mapping.select_prev_item({ behavior = types.cmp.SelectBehavior.Insert }), { 'i', 'c' }),
|
||||
|
||||
Reference in New Issue
Block a user