feat: support acp (#2649)

This commit is contained in:
yetone
2025-08-31 07:41:19 +08:00
committed by GitHub
parent 9008fc4f41
commit 5e0aa7e5c0
12 changed files with 1653 additions and 42 deletions

View File

@@ -1700,4 +1700,12 @@ function M.fix_diff(diff)
return table.concat(the_final_diff_lines, "\n")
end
function M.get_unified_diff(text1, text2, opts)
opts = opts or {}
opts.result_type = "unified"
opts.ctxlen = opts.ctxlen or 3
return vim.diff(text1, text2, opts)
end
return M