Enable lazygit with added bin and shortcut (<space>gv)

This commit is contained in:
Daniel McKnight 2025-06-10 08:36:53 -07:00
parent 017099cfe0
commit 7fe9fd7f20
2 changed files with 39 additions and 19 deletions

View file

@ -18,4 +18,24 @@ return {
vim.keymap.set("n", "<leader>gp", ":Gitsigns prev_hunk<CR>", { desc = "Git Previous Hunk" })
end,
},
{
"kdheepak/lazygit.nvim",
lazy = true,
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
-- optional for floating window border decoration
dependencies = {
"nvim-lua/plenary.nvim",
},
-- setting the keybinding for LazyGit with 'keys' is recommended in
-- order to load the plugin when the command is run for the first time
keys = {
{ "<leader>gv", "<cmd>LazyGit<cr>", desc = "LazyGit View" },
},
},
}

BIN
.local/bin/lazygit Executable file

Binary file not shown.