Remove NeogitMessages user command. Use :Notifications instead.

This commit is contained in:
Cameron 2023-09-19 15:17:10 +02:00
parent a3d59b2863
commit a4981b11a5
2 changed files with 0 additions and 12 deletions

View file

@ -91,9 +91,6 @@ to Neovim users.
*:Neogit*
:Neogit In a Git repository, opens a new NeogitStatus tab.
*:NeogitMessages*
:NeogitMessages Prints messages from neogit's messaging system.
*:NeogitResetState*
:NeogitResetState Performs a full reset of saved flags for all popups.

View file

@ -12,15 +12,6 @@ end, {
end,
})
api.nvim_create_user_command("NeogitMessages", function()
for _, message in ipairs(require("neogit.lib.notification").get_history()) do
print(string.format("[%s]: %s", message.kind, table.concat(message.content, " - ")))
end
end, {
nargs = "*",
desc = "Prints neogit message history",
})
api.nvim_create_user_command("NeogitResetState", function()
require("neogit.lib.state")._reset()
end, { nargs = "*", desc = "Reset any saved flags" })