diff --git a/modules/nvim/config/lua/plugins/git.lua b/modules/nvim/config/lua/plugins/git.lua new file mode 100644 index 0000000..04b5656 --- /dev/null +++ b/modules/nvim/config/lua/plugins/git.lua @@ -0,0 +1,18 @@ +return { + "NeogitOrg/neogit", + dependencies = { + "nvim-lua/plenary.nvim", + "sindrets/diffview.nvim", + }, + opts = {}, + keys = { + { "gg", "Neogit", desc = "Open neogit", mode = "n" }, + { "gc", "Neogit commit", desc = "Open neogit commit UI", mode = "n" }, + { "gb", "Neogit branch", desc = "Open neogit branch UI", mode = "n" }, + { "gp", "Neogit push", desc = "Open neogit push UI", mode = "n" }, + { "gf", "Neogit pull", desc = "Open neogit pull UI", mode = "n" }, + { "gm", "Neogit merge", desc = "Open neogit merge UI", mode = "n" }, + { "ghb", "DiffviewFileHistory", desc = "Show history for current branch", mode = "n" }, + { "ghf", "DiffviewFileHistory %", desc = "Show file history", mode = "n" }, + }, +} diff --git a/modules/nvim/config/lua/plugins/snacks.lua b/modules/nvim/config/lua/plugins/snacks.lua index ff6e7cc..5da12fe 100644 --- a/modules/nvim/config/lua/plugins/snacks.lua +++ b/modules/nvim/config/lua/plugins/snacks.lua @@ -39,7 +39,7 @@ return { keys = { -- Git { - "gg", + "g_", function() Snacks.lazygit() end,