feat(git): added leader-gB to browse remotes of the current repo

This commit is contained in:
Folke Lemaitre 2024-06-06 06:50:05 +02:00
parent 86811ad7aa
commit c4ccd7cbce
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 33 additions and 0 deletions

View file

@ -134,6 +134,7 @@ map("n", "<leader>ub", function() LazyVim.toggle("background", false, {"light",
map("n", "<leader>gg", function() LazyVim.lazygit( { cwd = LazyVim.root.git() }) end, { desc = "Lazygit (Root Dir)" })
map("n", "<leader>gG", function() LazyVim.lazygit() end, { desc = "Lazygit (cwd)" })
map("n", "<leader>gb", LazyVim.lazygit.blame_line, { desc = "Git Blame Line" })
map("n", "<leader>gB", LazyVim.lazygit.browse, { desc = "Git Browse" })
map("n", "<leader>gf", function()
local git_path = vim.api.nvim_buf_get_name(0)