diff --git a/lua/telescope/_extensions/frecency/sorter.lua b/lua/telescope/_extensions/frecency/sorter.lua index 39b38a3..a0f8c4d 100644 --- a/lua/telescope/_extensions/frecency/sorter.lua +++ b/lua/telescope/_extensions/frecency/sorter.lua @@ -23,10 +23,11 @@ my_sorters.get_substr_matcher = function(opts) substr.highlighter = substr_highlighter substr.scoring_function = function(_, prompt, _, entry) -- local base_score = frecency:score(prompt, entry) + local display = entry.name:lower() local base_score -- TODO: split the prompt into components - base_score = entry.name:find(prompt, 1, true) and 1 or -1 + base_score = display:find(prompt, 1, true) and 1 or -1 if base_score == -1 then return -1