From f4ac164633eec7ede53b5a11acd2f3b8563412eb Mon Sep 17 00:00:00 2001 From: emmatherock Date: Sun, 30 Aug 2026 12:54:29 -0300 Subject: [PATCH] feat(neovim): add vim-fugitive for Git integration Enables interactive status, commits, push/pull, and file diffs via g{s,c,p,l,d}, complementing gitsigns' hunk-level view. --- home/emmatherock/neovim.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/emmatherock/neovim.nix b/home/emmatherock/neovim.nix index 9329a8a..69305db 100644 --- a/home/emmatherock/neovim.nix +++ b/home/emmatherock/neovim.nix @@ -120,6 +120,9 @@ # --- Git: gutter signs, hunk stage/reset, blame --- plugins.gitsigns.enable = true; + # --- Git: interactive status/commit/diff/blame --- + plugins.fugitive.enable = true; + # --- Statusline --- plugins.lualine.enable = true; @@ -206,6 +209,13 @@ { mode = [ "n" "v" ]; key = "ac"; action = "CodeCompanionChat Toggle"; } { mode = "v"; key = "aa"; action = "CodeCompanionChat Add"; } { mode = "n"; key = "ai"; action = "CodeCompanion"; } # inline assistant + + # Fugitive + { mode = "n"; key = "gs"; action = "Git"; } # status + { mode = "n"; key = "gc"; action = "Git commit"; } # interactive commit + { mode = "n"; key = "gp"; action = "Git push"; } + { mode = "n"; key = "gl"; action = "Git pull"; } + { mode = "n"; key = "gd"; action = "Gvdiffsplit"; } # diff current file ]; }; }