Improve perf
This commit is contained in:
@@ -71,7 +71,7 @@ end
|
||||
|
||||
-- sortText
|
||||
compare.sort_text = function(entry1, entry2)
|
||||
if misc.safe(entry1.completion_item.sortText) and misc.safe(entry2.completion_item.sortText) then
|
||||
if entry1.completion_item.sortText and entry2.completion_item.sortText then
|
||||
local diff = vim.stricmp(entry1.completion_item.sortText, entry2.completion_item.sortText)
|
||||
if diff < 0 then
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user