Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 6bbe4b4

Browse files
committed
fix: apply sorting on cache complete_items
1 parent 8c63501 commit 6bbe4b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/completion/complete.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ M.performComplete = function(complete_source, complete_items_map, manager, bufnr
8888
for _, item in ipairs(cache_complete_items) do
8989
match.matching(items, prefix, item)
9090
end
91+
if vim.g.completion_sorting ~= "none" then
92+
util.sort_completion_items(items)
93+
end
9194
if #items ~= 0 then
9295
-- reset insertChar and handle auto changing source
9396
cache_complete_items = items

0 commit comments

Comments
 (0)