mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-31 15:19:38 +02:00
fix(pick): use LazyVim.pick instead of M since dashboard dumps/loadstrings functions. Why though... Fixes #3617
This commit is contained in:
parent
339979d314
commit
425e6e0ea3
2 changed files with 1 additions and 8 deletions
|
@ -84,16 +84,10 @@ end
|
|||
function M.wrap(command, opts)
|
||||
opts = opts or {}
|
||||
return function()
|
||||
M.open(command, vim.deepcopy(opts))
|
||||
LazyVim.pick.open(command, vim.deepcopy(opts))
|
||||
end
|
||||
end
|
||||
|
||||
---@param command string
|
||||
---@param opts? lazyvim.util.pick.Opts
|
||||
function M._open(command, opts)
|
||||
return LazyVim.telescope.open(command, opts)
|
||||
end
|
||||
|
||||
function M.config_files()
|
||||
return M.wrap("files", { cwd = vim.fn.stdpath("config") })
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue