diff options
| author | Simon Hauser <simon.hauser@helsinki-systems.de> | 2022-07-07 08:27:46 +0200 |
|---|---|---|
| committer | Simon Hauser <simon.hauser@helsinki-systems.de> | 2022-07-07 08:27:46 +0200 |
| commit | f838695459d75a889ae8d96e370957f0f675902a (patch) | |
| tree | 886426677b34edaa04dad95b33a2dc7e3514b8cb /lua/telescope/sorters.lua | |
| parent | 8fe2dde6560667217682b22d77e1e719b7156cda (diff) | |
chore: reformat with stylua 0.14.0
Diffstat (limited to 'lua/telescope/sorters.lua')
| -rw-r--r-- | lua/telescope/sorters.lua | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lua/telescope/sorters.lua b/lua/telescope/sorters.lua index 3fb263a..1ad9deb 100644 --- a/lua/telescope/sorters.lua +++ b/lua/telescope/sorters.lua @@ -291,17 +291,17 @@ sorters.get_fuzzy_file = function(opts) end local denominator = ( - (10 * match_count / #prompt_lower_ngrams) - -- biases for shorter strings - + 3 * match_count * ngram_len / #line - + consecutive_matches - + N / (contains_string or (2 * #line)) - -- + 30/(c1 or 2*N) - -- TODO: It might be possible that this too strongly correlates, - -- but it's unlikely for people to type capital letters without actually - -- wanting to do something with a capital letter in it. - + uppers_matching - ) * tail_modifier + (10 * match_count / #prompt_lower_ngrams) + -- biases for shorter strings + + 3 * match_count * ngram_len / #line + + consecutive_matches + + N / (contains_string or (2 * #line)) + -- + 30/(c1 or 2*N) + -- TODO: It might be possible that this too strongly correlates, + -- but it's unlikely for people to type capital letters without actually + -- wanting to do something with a capital letter in it. + + uppers_matching + ) * tail_modifier if denominator == 0 or denominator ~= denominator then return -1 |
