From bf50dad8678dbdec669a9df1a372ede47c3c4443 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Mon, 26 May 2025 15:31:21 +0200 Subject: [PATCH] improve neogit ergonomy. no more stage all & no diffview --- lua/plugins.lua | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index d5f7949..c2f0956 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -330,16 +330,24 @@ local plugins = { dependencies = { "nvim-lua/plenary.nvim", -- required "nvim-telescope/telescope.nvim", -- optional - "sindrets/diffview.nvim", -- optional "ibhagwan/fzf-lua", -- optional }, - opts = { - sections = { - untracked = { - folded = true, + config = function() + require("neogit").setup({ + sections = { + untracked = { + folded = true, + } + }, + mappings = { + status = { + ["S"] = "Stage", + [""] = "Stage", + [""] = "Stage", + } } - } - } + }) + end }, { "RRethy/vim-illuminate",