mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(picker.preview): don't show locations for diff preview
This commit is contained in:
parent
726095723d
commit
b0644884ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue