mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker.git): allow passing extra args to git grep. Closes #1184
This commit is contained in:
parent
72ffb3d1a2
commit
7122a03fdf
2 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ function M.grep(opts, ctx)
|
|||
elseif opts.submodules then
|
||||
table.insert(args, "--recurse-submodules")
|
||||
end
|
||||
vim.list_extend(args, opts.args or {})
|
||||
table.insert(args, ctx.filter.search)
|
||||
if not opts.cwd then
|
||||
opts.cwd = Snacks.git.get_root() or uv.cwd() or "."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue