refactor(git): minor structural cleanups

This commit is contained in:
2026-04-27 13:10:10 +02:00
parent f55d7ac11d
commit 5966454462
4 changed files with 36 additions and 40 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ end
---@param arg_lead string
---@param cmd_line string
---@return string[]
function M.complete(arg_lead, cmd_line, _)
local function complete(arg_lead, cmd_line, _)
local rest = cmd_line:gsub("^%s*%S+%s*", "", 1)
local words = vim.split(rest, "%s+", { trimempty = false })
if #words > 1 then
@@ -208,7 +208,7 @@ function M.setup()
M.run(opts.fargs)
end, {
nargs = "*",
complete = M.complete,
complete = complete,
desc = "Run git",
})
end