feat/hack: Add builtin.builtin

This commit is contained in:
TJ DeVries
2020-09-01 22:27:50 -04:00
parent c11a661362
commit 39096492ab
4 changed files with 47 additions and 10 deletions

View File

@@ -179,15 +179,13 @@ sorters.get_fuzzy_file = function(opts)
tail_modifier = 2
end
-- TODO: Copied from ashkan.
local denominator = (
(10 * match_count / #prompt_lower_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)
-- TODO: It might be possible that this too strongly correlates,