fix(pick): use LazyVim.pick instead of M since dashboard dumps/loadstrings functions. Why though... Fixes #3617

This commit is contained in:
Folke Lemaitre 2024-06-13 06:13:39 +02:00
parent 339979d314
commit 425e6e0ea3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 1 additions and 8 deletions

View file

@ -5,7 +5,6 @@ local LazyUtil = require("lazy.core.util")
---@field ui lazyvim.util.ui
---@field lsp lazyvim.util.lsp
---@field root lazyvim.util.root
---@field telescope lazyvim.util.telescope
---@field terminal lazyvim.util.terminal
---@field lazygit lazyvim.util.lazygit
---@field toggle lazyvim.util.toggle

View file

@ -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