fix(pick): use LazyVim.pick instead of M since dashboard dumps/loadstrings functions. Why though... Fixes #3617
This commit is contained in:
2 files changed
+1
-8
No files matched your search
@@ -5,7 +5,6 @@ local LazyUtil = require("lazy.core.util")
|
|||||||
---@field ui lazyvim.util.ui
|
---@field ui lazyvim.util.ui
|
||||||
---@field lsp lazyvim.util.lsp
|
---@field lsp lazyvim.util.lsp
|
||||||
---@field root lazyvim.util.root
|
---@field root lazyvim.util.root
|
||||||
---@field telescope lazyvim.util.telescope
|
|
||||||
---@field terminal lazyvim.util.terminal
|
---@field terminal lazyvim.util.terminal
|
||||||
---@field lazygit lazyvim.util.lazygit
|
---@field lazygit lazyvim.util.lazygit
|
||||||
---@field toggle lazyvim.util.toggle
|
---@field toggle lazyvim.util.toggle
|
||||||
|
|||||||
@@ -84,16 +84,10 @@ end
|
|||||||
function M.wrap(command, opts)
|
function M.wrap(command, opts)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
return function()
|
return function()
|
||||||
M.open(command, vim.deepcopy(opts))
|
LazyVim.pick.open(command, vim.deepcopy(opts))
|
||||||
end
|
end
|
||||||
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()
|
function M.config_files()
|
||||||
return M.wrap("files", { cwd = vim.fn.stdpath("config") })
|
return M.wrap("files", { cwd = vim.fn.stdpath("config") })
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user