snacks.nvim icon indicating copy to clipboard operation
snacks.nvim copied to clipboard

feat(picker.git): use default previewer args in git_show

Open pedropombeiro opened this issue 8 months ago • 1 comments

Description

Currently, I'm able to perform a search on a YADM repo by passing the args { "--git-dir", "/Users/pedro/.local/share/yadm/repo.git", "--work-tree", "/Users/pedro" } to picker.previewers.git.args. Unfortunately, the git_show previewer is currently not using this configuration, so constantly fails to show the preview with an error message. This MR fixes the problem by leveraging the existing git local function.

Related Issue(s)

Screenshots

image

Previewer working inside a YADM repo.

pedropombeiro avatar Apr 11 '25 22:04 pedropombeiro

This PR is stale because it has been open 30 days with no activity.

github-actions[bot] avatar May 13 '25 02:05 github-actions[bot]

ty!

folke avatar Oct 21 '25 14:10 folke