fix(keymaps): use root dir for git log

This commit is contained in:
Folke Lemaitre
2024-06-05 13:41:59 +02:00
parent fa706b320b
commit 662e2ffe0f

View File

@ -141,8 +141,11 @@ map("n", "<leader>gf", function()
end, { desc = "Lazygit Current File History" })
map("n", "<leader>gl", function()
LazyVim.lazygit({ args = { "log" } })
LazyVim.lazygit({ args = { "log" }, cwd = LazyVim.root.git() })
end, { desc = "Lazygit Log" })
map("n", "<leader>gL", function()
LazyVim.lazygit({ args = { "log" } })
end, { desc = "Lazygit Log (cwd)" })
-- quit
map("n", "<leader>qq", "<cmd>qa<cr>", { desc = "Quit All" })