mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 21:06:46 +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
|
@ -16,6 +16,7 @@ function M.cmd(cmd, plugins)
|
|||
end
|
||||
end
|
||||
|
||||
---@class LazyCommands
|
||||
M.commands = {
|
||||
clean = function(plugins)
|
||||
Manage.clean({ clear = true, mode = "clean", plugins = plugins })
|
||||
|
@ -33,6 +34,9 @@ M.commands = {
|
|||
home = function()
|
||||
View.show("home")
|
||||
end,
|
||||
show = function()
|
||||
View.show("home")
|
||||
end,
|
||||
help = function()
|
||||
View.show("help")
|
||||
end,
|
||||
|
@ -44,8 +48,8 @@ M.commands = {
|
|||
end,
|
||||
sync = function()
|
||||
Manage.clean({ clear = true, wait = true, mode = "sync" })
|
||||
Manage.update({ interactive = true })
|
||||
Manage.install({ interactive = true })
|
||||
Manage.update()
|
||||
Manage.install()
|
||||
end,
|
||||
update = function(plugins)
|
||||
Manage.update({ clear = true, mode = "update", plugins = plugins })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue