feat(ui): made it look a little less like a Mason rip-off :)

This commit is contained in:
Folke Lemaitre 2022-12-17 15:56:13 +01:00
parent 85e375223f
commit 9026a0e25d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 31 additions and 13 deletions

View file

@ -7,7 +7,7 @@ local M = {}
---@param cmd string
---@param plugins? LazyPlugin[]
function M.cmd(cmd, plugins)
cmd = cmd == "" and "show" or cmd
cmd = cmd == "" and "home" or cmd
local command = M.commands[cmd]
if command == nil then
Util.error("Invalid lazy command '" .. cmd .. "'")
@ -30,8 +30,8 @@ M.commands = {
log = function(plugins)
Manage.log({ clear = true, mode = "log", plugins = plugins })
end,
show = function()
View.show()
home = function()
View.show("home")
end,
help = function()
View.show("help")