fix(git): fix luadoc function return

This commit is contained in:
2026-04-27 14:43:37 +02:00
parent 9530fe2aba
commit 00eae8dbb9
+2 -1
View File
@@ -86,7 +86,8 @@ end
---Resolve the gitdir/worktree from the current buffer's file path, falling
---back to `vim.fn.getcwd()` when the buffer is unnamed. Returns nil for
---both when not inside a git repo.
---@return string?, string? gitdir, worktree
---@return string? gitdir
---@return string? worktree
local function resolve_cwd()
local path = vim.api.nvim_buf_get_name(0)
if path == "" then