We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93ffba4 commit 826ec90Copy full SHA for 826ec90
lua/easycomplete/util.lua
@@ -129,7 +129,9 @@ function util.complete_menu_filter(matching_res, word)
129
end
130
131
132
- if vim.fn["easycomplete#GetStuntMenuItems"]() == 0 and vim.g.easycomplete_first_complete_hit == 1 then
+ local stunt_items = vim.fn["easycomplete#GetStuntMenuItems"]()
133
+
134
+ if #stunt_items == 0 and vim.g.easycomplete_first_complete_hit == 1 then
135
table.sort(fuzzymatch_result, function(a, b)
136
return #a.abbr < #b.abbr -- 按 abbr 字段的长度升序排序
137
end)
0 commit comments