fix(git): fix luadoc function return
This commit is contained in:
+2
-1
@@ -86,7 +86,8 @@ end
|
|||||||
---Resolve the gitdir/worktree from the current buffer's file path, falling
|
---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
|
---back to `vim.fn.getcwd()` when the buffer is unnamed. Returns nil for
|
||||||
---both when not inside a git repo.
|
---both when not inside a git repo.
|
||||||
---@return string?, string? gitdir, worktree
|
---@return string? gitdir
|
||||||
|
---@return string? worktree
|
||||||
local function resolve_cwd()
|
local function resolve_cwd()
|
||||||
local path = vim.api.nvim_buf_get_name(0)
|
local path = vim.api.nvim_buf_get_name(0)
|
||||||
if path == "" then
|
if path == "" then
|
||||||
|
|||||||
Reference in New Issue
Block a user