fix(picker.preview): don't show locations for diff preview

This commit is contained in:
Folke Lemaitre 2025-10-27 23:36:26 +01:00
parent 726095723d
commit b0644884ef
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -268,7 +268,7 @@ end
function M.diff(ctx)
local builtin = ctx.picker.opts.previewers.diff.builtin
if builtin then
ctx.item.preview = { text = ctx.item.diff, ft = "diff" }
ctx.item.preview = { text = ctx.item.diff, ft = "diff", loc = false }
return M.preview(ctx)
end
local cmd = vim.deepcopy(ctx.picker.opts.previewers.diff.cmd)