NeoVimConfiguration/lua/plugins/git.lua

23 lines
676 B
Lua

return {
"kdheepak/lazygit.nvim",
--cmd = {
-- "LazyGit",
-- "LazyGitConfig",
-- "LazyGitCurrentFile",
-- "LazyGitFilter",
-- "LazyGitFilterCurrentFile",
--},
dependencies = {
"nvim-lua/plenary.nvim",
"folke/which-key.nvim",
},
config = function()
require('which-key').add({
{ "<leader>g", group = "git" },
{ "<leader>gb", "<Cmd>Telescope git_branches<CR>", desc = "Branches" },
{ "<leader>gg", "<Cmd>Telescope git_commits<CR>", desc = "LazyGit" },
{ "<leader>gl", "<Cmd>LazyGit<CR>", desc = "Commits" },
{ "<leader>gs", "<Cmd>Telescope git_status<CR>", desc = "Status" },
})
end
}