diff options
| author | Julian Fricker <402357+TC72@users.noreply.github.com> | 2022-01-09 18:43:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-09 19:43:06 +0100 |
| commit | 5060f3f0ab33504e728a8673dc08679947c35ded (patch) | |
| tree | adc649dd91bb4131da32c3da647c8a81175470c4 /lua/telescope/pickers.lua | |
| parent | e8ef88bfcbabde42b7a29e938dc5ebbdbb8b1c5f (diff) | |
feat: tiebreak config function (#1401)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 9385a49..6e966a5 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -105,6 +105,7 @@ function Picker:new(opts) scroll_strategy = get_default(opts.scroll_strategy, config.values.scroll_strategy), sorting_strategy = get_default(opts.sorting_strategy, config.values.sorting_strategy), + tiebreak = get_default(opts.tiebreak, config.values.tiebreak), selection_strategy = get_default(opts.selection_strategy, config.values.selection_strategy), layout_strategy = layout_strategy, @@ -1210,7 +1211,8 @@ function Picker:get_result_processor(find_id, prompt, status_updater) local count = 0 local cb_add = function(score, entry) - self.manager:add_entry(self, score, entry) + -- may need the prompt for tiebreak + self.manager:add_entry(self, score, entry, prompt) status_updater { completed = false } end |
