nvim-telescope / telescope-frecency.nvim

A telescope.nvim extension that offers intelligent prioritization when selecting files from your editing history.
MIT License
688 stars 35 forks source link

Bind extension to function? #185

Closed phortonssf closed 3 months ago

phortonssf commented 3 months ago

As the title says, I am trying to bind frecency as a function to pass in dynamic config. The default way documented works but i can't seem to invoke this extension as I am able to invoke other telescope extensions. I instead get the error unable to find frecency.

` vim.keymap.set("n", "fr", function() require("telescope").extensions.frecency({}) end)

`

phortonssf commented 3 months ago

[Solved] Of course I find a soluton right after posting. ` vim.keymap.set("n", "fr", function() require("telescope").extensions.frecency.frecency({}) end)

`

delphinus commented 3 months ago

Yes, it lacks info about such way. I added a note to launch frecency via Lua function.