From 43266cf661195900abcb7f8a49dcd9d652d87ab2 Mon Sep 17 00:00:00 2001 From: Arthur Cahu Date: Sun, 12 Jul 2026 13:12:06 +0200 Subject: [PATCH] fix(picker): git status without locks Would close `Snacks.picker.git_status()` after a split second with a Flog or DiffView window open --- lua/snacks/picker/source/git.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/snacks/picker/source/git.lua b/lua/snacks/picker/source/git.lua index 3ee01a524..921dd1653 100644 --- a/lua/snacks/picker/source/git.lua +++ b/lua/snacks/picker/source/git.lua @@ -219,7 +219,7 @@ end ---@param opts snacks.picker.git.status.Config ---@type snacks.picker.finder function M.status(opts, ctx) - local args = M.git("status", "-uall", "--porcelain=v1", "-z", { args = { "--no-pager" } }, opts) + local args = M.git("status", "-uall", "--porcelain=v1", "-z", { args = { "--no-pager", "--no-optional-locks" } }, opts) if opts.ignored then table.insert(args, "--ignored=matching") end