mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
squash! feat(extras): adding telescope-frecency
This commit is contained in:
parent
c88c0a5739
commit
9a87558731
1 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ end
|
||||||
|
|
||||||
local function prompt_title(picker, o)
|
local function prompt_title(picker, o)
|
||||||
if picker == "oldfiles" then
|
if picker == "oldfiles" then
|
||||||
return string.format("oldfiles: [%s]", o.cwd)
|
return string.format("oldfiles: [%s]", o.cwd or "*")
|
||||||
elseif picker == "frecency" then
|
elseif picker == "frecency" then
|
||||||
return string.format("frecency: [%s]", o.workspace)
|
return string.format("frecency: [%s]", o.workspace)
|
||||||
end
|
end
|
||||||
|
|
@ -71,7 +71,7 @@ local actions = {}
|
||||||
local function picker_config(picker, opts)
|
local function picker_config(picker, opts)
|
||||||
opts = vim.tbl_deep_extend("force", FrecencyIntegration.config.pickers[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
|
if not opts.prompt_title then
|
||||||
opts.prompt_title = prompt_title(picker, opts)
|
opts.prompt_title = prompt_title(picker, opts)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue