snacks.nvim/lua
Pedro Pombeiro f324f96bea
feat(picker.git): use default previewer args in git_show (#1736)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

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)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

<img width="1582" alt="image"
src="https://github.com/user-attachments/assets/6f7c3960-cfc0-4c0c-a264-105a721cd9a8"
/>

Previewer working inside a YADM repo.
2025-10-21 16:43:37 +02:00
..
snacks feat(picker.git): use default previewer args in git_show (#1736) 2025-10-21 16:43:37 +02:00
trouble/sources Revert "feat: test" 2025-02-14 22:13:38 +01:00