snacks.nvim
snacks.nvim copied to clipboard
feat(picker.git): use default previewer args in git_show
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
Previewer working inside a YADM repo.
This PR is stale because it has been open 30 days with no activity.
ty!