diff options
| author | Tushar Kuntawar <2002.tushar.kuntawar@gmail.com> | 2022-09-28 00:47:11 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-27 21:17:11 +0200 |
| commit | 2428953db3d6b239cc2cb75f7a09ad01ab7d2359 (patch) | |
| tree | 9ce21bc46adbd01194fee93ecea418121c716cca /lua/telescope/builtin | |
| parent | a7ede53f06e657d7f682284730b95c3af6dfc345 (diff) | |
fix: builtin register picker better sorting (#2175)
Diffstat (limited to 'lua/telescope/builtin')
| -rw-r--r-- | lua/telescope/builtin/__internal.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index b9626bb..3684518 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -7,7 +7,6 @@ local Path = require "plenary.path" local pickers = require "telescope.pickers" local previewers = require "telescope.previewers" local p_window = require "telescope.pickers.window" -local sorters = require "telescope.sorters" local state = require "telescope.state" local utils = require "telescope.utils" @@ -1089,8 +1088,7 @@ internal.registers = function(opts) results = registers_table, entry_maker = opts.entry_maker or make_entry.gen_from_registers(opts), }, - -- use levenshtein as n-gram doesn't support <2 char matches - sorter = sorters.get_levenshtein_sorter(), + sorter = conf.generic_sorter(opts), attach_mappings = function(_, map) actions.select_default:replace(actions.paste_register) map("i", "<C-e>", actions.edit_register) |
