Make sure that custom pickers use the fuzzy sorters, this makes for a
noticable speed increase for large projects.
This commit is contained in:
parent
d3f4c573fc
commit
f0dce86173
1 changed files with 3 additions and 0 deletions
|
|
@ -66,7 +66,10 @@ return {
|
||||||
}
|
}
|
||||||
-- Cache the options with the dropdown theme for each picker so we don't
|
-- Cache the options with the dropdown theme for each picker so we don't
|
||||||
-- recalculate it every time we open a picker
|
-- recalculate it every time we open a picker
|
||||||
|
local fzf_sorter = require("telescope.sorters").get_fzy_sorter()
|
||||||
for _, v in ipairs(pickers) do
|
for _, v in ipairs(pickers) do
|
||||||
|
-- Make sure all custom pickers are set to use the fzf sorter
|
||||||
|
v.picker_opts.sorter = fzf_sorter
|
||||||
v.picker_opts = vim.tbl_extend("force", dropdown, v.picker_opts)
|
v.picker_opts = vim.tbl_extend("force", dropdown, v.picker_opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue