From 63978319ac6fc4f3b7c17124e394d89e940b20e2 Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 23 Oct 2025 13:47:12 +0200 Subject: [PATCH] uses neogit --- modules/nvim/config/lua/plugins/git.lua | 18 ++++++++++++++++++ modules/nvim/config/lua/plugins/snacks.lua | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 modules/nvim/config/lua/plugins/git.lua 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,