mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: expose all commands on main lazy module
This commit is contained in:
parent
0b4a04de7d
commit
f25f942eb7
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
---@type LazyCommands
|
||||
local M = {}
|
||||
|
||||
---@param spec LazySpec Should be a module name to load, or a plugin spec
|
||||
|
@ -87,4 +88,10 @@ function M.plugins()
|
|||
return vim.tbl_values(require("lazy.core.config").plugins)
|
||||
end
|
||||
|
||||
setmetatable(M, {
|
||||
__index = function(_, key)
|
||||
return require("lazy.view.commands").commands[key]
|
||||
end,
|
||||
})
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue