diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-04-03 13:33:33 +0200 |
|---|---|---|
| committer | Simon Hauser <Simon-Hauser@outlook.de> | 2022-04-03 13:33:33 +0200 |
| commit | 6e7ee3829225d5c97c1ebfff686050142ffe5867 (patch) | |
| tree | 87504b1f83bd421cb7c7bf2a30be031cbad99537 /lua/telescope | |
| parent | d38ad438f3bb4e3721b9964172c8c9d70d5d06a8 (diff) | |
chore: reformat with stylua 0.13
Diffstat (limited to 'lua/telescope')
| -rw-r--r-- | lua/telescope/sorters.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lua/telescope/sorters.lua b/lua/telescope/sorters.lua index 167a67b..8e266b3 100644 --- a/lua/telescope/sorters.lua +++ b/lua/telescope/sorters.lua @@ -382,15 +382,15 @@ sorters.get_generic_fuzzy_sorter = function(opts) -- TODO: Copied from ashkan. local denominator = ( - (10 * match_count / #prompt_ngrams) - -- biases for shorter strings - -- TODO(ashkan): this can bias towards repeated finds of the same - -- subpattern with overlapping_ngrams - + 3 * match_count * ngram_len / #line - + consecutive_matches - + N / (contains_string or (2 * #line)) -- + 30/(c1 or 2*N) - - ) + (10 * match_count / #prompt_ngrams) + -- biases for shorter strings + -- TODO(ashkan): this can bias towards repeated finds of the same + -- subpattern with overlapping_ngrams + + 3 * match_count * ngram_len / #line + + consecutive_matches + + N / (contains_string or (2 * #line)) -- + 30/(c1 or 2*N) + + ) if denominator == 0 or denominator ~= denominator then return -1 |
