mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +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
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue