mirror of
https://github.com/TimUntersberger/neogit
synced 2024-09-16 14:24:09 +02:00
17 lines
491 B
Lua
17 lines
491 B
Lua
local api = vim.api
|
|
|
|
api.nvim_create_user_command("Neogit", function(o)
|
|
local neogit = require("neogit")
|
|
neogit.open(require("neogit.lib.util").parse_command_args(o.fargs))
|
|
end, {
|
|
nargs = "*",
|
|
desc = "Open Neogit",
|
|
complete = function(arglead)
|
|
local neogit = require("neogit")
|
|
return neogit.complete(arglead)
|
|
end,
|
|
})
|
|
|
|
api.nvim_create_user_command("NeogitResetState", function()
|
|
require("neogit.lib.state")._reset()
|
|
end, { nargs = "*", desc = "Reset any saved flags" })
|