chore: apply formatting
This commit is contained in:
+5
-3
@@ -489,8 +489,7 @@ local function recompute(buf)
|
||||
state.head_sha = sha
|
||||
end,
|
||||
function()
|
||||
local new =
|
||||
vim.api.nvim_buf_get_lines(buf, 0, -1, false)
|
||||
local new = vim.api.nvim_buf_get_lines(buf, 0, -1, false)
|
||||
state.hunks = state.index
|
||||
and compute_hunks(state.index, new)
|
||||
or {}
|
||||
@@ -524,7 +523,10 @@ function M.attach(buf)
|
||||
if not r then
|
||||
return
|
||||
end
|
||||
local rel = vim.fs.relpath(r.worktree, vim.fn.resolve(vim.api.nvim_buf_get_name(buf)))
|
||||
local rel = vim.fs.relpath(
|
||||
r.worktree,
|
||||
vim.fn.resolve(vim.api.nvim_buf_get_name(buf))
|
||||
)
|
||||
if not rel then
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user