mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(ui): made it look a little less like a Mason rip-off :)
This commit is contained in:
parent
85e375223f
commit
9026a0e25d
4 changed files with 31 additions and 13 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue