summaryrefslogtreecommitdiff
path: root/lua/telescope/sorters.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-11-23 09:29:10 -0500
committerGitHub <noreply@github.com>2020-11-23 09:29:10 -0500
commit2ac0582c06d8a52a42907dde106983e44ae989ef (patch)
treef2473c9299eb31b79acb24d45ec5c173579d8e09 /lua/telescope/sorters.lua
parent124655608ff727ecee032bb2eb6f44014e8868eb (diff)
feat: v0.1 of extensions (#278)
Diffstat (limited to 'lua/telescope/sorters.lua')
-rw-r--r--lua/telescope/sorters.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/telescope/sorters.lua b/lua/telescope/sorters.lua
index 6fff7f8..7a15325 100644
--- a/lua/telescope/sorters.lua
+++ b/lua/telescope/sorters.lua
@@ -366,8 +366,9 @@ sorters.fuzzy_with_index_bias = function(opts)
end
-- Sorter using the fzy algorithm
-sorters.get_fzy_sorter = function()
- local fzy = require('telescope.algos.fzy')
+sorters.get_fzy_sorter = function(opts)
+ opts = opts or {}
+ local fzy = opts.fzy_mod or require('telescope.algos.fzy')
local OFFSET = -fzy.get_score_floor()
return sorters.Sorter:new{