mirror of https://github.com/folke/lazy.nvim.git
feat(commands): added health command to run `:checkhealth lazy`
This commit is contained in:
parent
716b6cc2b5
commit
86dff1b59a
|
@ -490,6 +490,7 @@ Any operation can be started from the UI, with a sub command or an API function:
|
|||
| `:Lazy clean [plugins]` | `require("lazy").clean(opts?)` | Clean plugins that are no longer needed |
|
||||
| `:Lazy clear` | `require("lazy").clear()` | Clear finished tasks |
|
||||
| `:Lazy debug` | `require("lazy").debug()` | Show debug information |
|
||||
| `:Lazy health` | `require("lazy").health()` | Run `:checkhealth lazy` |
|
||||
| `:Lazy help` | `require("lazy").help()` | Toggle this help page |
|
||||
| `:Lazy home` | `require("lazy").home()` | Go back to plugin list |
|
||||
| `:Lazy install [plugins]` | `require("lazy").install(opts?)` | Install missing plugins |
|
||||
|
|
|
@ -24,6 +24,9 @@ M.commands = {
|
|||
Manage.clear()
|
||||
View.show()
|
||||
end,
|
||||
health = function()
|
||||
vim.cmd.checkhealth("lazy")
|
||||
end,
|
||||
home = function()
|
||||
View.show("home")
|
||||
end,
|
||||
|
|
|
@ -134,6 +134,10 @@ M.commands = {
|
|||
plugins = true,
|
||||
plugins_required = true,
|
||||
},
|
||||
health = {
|
||||
desc = "Run `:checkhealth lazy`",
|
||||
id = 14,
|
||||
},
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
Loading…
Reference in New Issue