From 9a87558731c036fe7bf58cea46089aabd64f1c85 Mon Sep 17 00:00:00 2001 From: shborg Date: Mon, 23 Oct 2023 20:17:16 +0200 Subject: [PATCH] squash! feat(extras): adding telescope-frecency --- lua/lazyvim/plugins/extras/editor/telescope-frecency.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/extras/editor/telescope-frecency.lua b/lua/lazyvim/plugins/extras/editor/telescope-frecency.lua index 6d119c41..09c9e7fb 100644 --- a/lua/lazyvim/plugins/extras/editor/telescope-frecency.lua +++ b/lua/lazyvim/plugins/extras/editor/telescope-frecency.lua @@ -50,7 +50,7 @@ end local function prompt_title(picker, o) if picker == "oldfiles" then - return string.format("oldfiles: [%s]", o.cwd) + return string.format("oldfiles: [%s]", o.cwd or "*") elseif picker == "frecency" then return string.format("frecency: [%s]", o.workspace) end @@ -71,7 +71,7 @@ local actions = {} local function picker_config(picker, opts) opts = vim.tbl_deep_extend("force", FrecencyIntegration.config.pickers[picker], opts) - opts.cwd = opts.cwd and opts.cwd or vim.loop.cwd() + -- opts.cwd = opts.cwd and opts.cwd or vim.loop.cwd() if not opts.prompt_title then opts.prompt_title = prompt_title(picker, opts) end