mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
fix(telescope): always create a new opts object to prevent caching
This commit is contained in:
parent
aae683f868
commit
d224aea4a4
1 changed files with 1 additions and 3 deletions
|
@ -56,9 +56,7 @@ end
|
|||
|
||||
function M.telescope(builtin, opts)
|
||||
return function()
|
||||
opts = opts or {}
|
||||
opts.cwd = M.get_root()
|
||||
require("telescope.builtin")[builtin](opts)
|
||||
require("telescope.builtin")[builtin](vim.tbl_deep_extend("force", { cwd = M.get_root() }, opts or {}))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue