feat: v0.1 of extensions (#278)

This commit is contained in:
TJ DeVries
2020-11-23 09:29:10 -05:00
committed by GitHub
parent 124655608f
commit 2ac0582c06
7 changed files with 107 additions and 60 deletions
+3 -2
View File
@@ -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{