use fuzzy sorter

This commit is contained in:
Senghan Bright
2021-01-14 14:45:48 +01:00
parent 8facdb9c2e
commit 6ca37f320f
2 changed files with 4 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ my_sorters.get_frecency_sorter = function(opts)
local fuzzy_sorter = sorters.get_generic_fuzzy_sorter(opts)
local frecency = sorters:new()
frecency.highlighter = fuzzy_sorter.highlighter
frecency.scoring_function = function(_, prompt, _, entry)
local base_score = fuzzy_sorter:score(prompt, entry)