open lazygit in cwd

This commit is contained in:
2025-10-10 13:51:45 +02:00
parent decdde1cb2
commit 769cbc67a6

View File

@@ -65,7 +65,7 @@ return {
},
},
keys = {
{ '<space>g', function() Snacks.lazygit() end, desc = 'Lazygit' },
{ '<space>g', function() Snacks.lazygit({ cwd = vim.fn.getcwd() }) end, desc = 'Lazygit' },
{ '<space>gf', function() Snacks.lazygit.log_file() end, desc = 'Lazygit Current File History' },
{ '<space>gl', function() Snacks.lazygit.log() end, desc = 'Lazygit Log (cwd)' },
{ 'm', function() Snacks.words.jump(vim.v.count1) end, desc = 'Next Reference', mode = { 'n' } },