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

Commit 166ca24

Browse files
committed
Add all matching strategy
fixes #163
1 parent 43cb0b1 commit 166ca24

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lua/completion/matching.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,15 @@ local function exact_match(prefix, word)
4141
end
4242
end
4343

44+
local function all_match()
45+
return true
46+
end
47+
4448
local matching_strategy = {
4549
fuzzy = fuzzy_match,
4650
substring = substring_match,
47-
exact = exact_match
51+
exact = exact_match,
52+
all = all_match,
4853
}
4954

5055
M.matching = function(complete_items, prefix, item)

0 commit comments

Comments
 (0)