Skip to content

Commit

Permalink
docs: fix the default value in README
Browse files Browse the repository at this point in the history
  • Loading branch information
delphinus committed Apr 29, 2024
1 parent 5026c5c commit 9a90290
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ See [default configuration](https://github.com/nvim-telescope/telescope.nvim#tel
---@param fzy_score number
---@return number
scoring_function = function(recency, fzy_score)
return (10 / (recency == 0 and 1 or recency)) - 1 / fzy_score
local score = (10 / (recency == 0 and 1 or recency)) - 1 / fzy_score
-- HACK: -1 means FILTERED, so return a bit smaller one.
return score == -1 and -1.000001 or score
end,
```

Expand Down

0 comments on commit 9a90290

Please sign in to comment.