feat(neovim): add vim-fugitive for Git integration

Enables interactive status, commits, push/pull, and file diffs
via <leader>g{s,c,p,l,d}, complementing gitsigns' hunk-level view.
This commit is contained in:
emmatherock committed 2026-08-30 12:54:29 -03:00
1 parent b14d48b3e2
commit f4ac164633
1 file changed
+10
+10
View File
@@ -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 = "<leader>ac"; action = "<cmd>CodeCompanionChat Toggle<CR>"; }
{ mode = "v"; key = "<leader>aa"; action = "<cmd>CodeCompanionChat Add<CR>"; }
{ mode = "n"; key = "<leader>ai"; action = "<cmd>CodeCompanion<CR>"; } # inline assistant
# Fugitive
{ mode = "n"; key = "<leader>gs"; action = "<cmd>Git<CR>"; } # status
{ mode = "n"; key = "<leader>gc"; action = "<cmd>Git commit<CR>"; } # interactive commit
{ mode = "n"; key = "<leader>gp"; action = "<cmd>Git push<CR>"; }
{ mode = "n"; key = "<leader>gl"; action = "<cmd>Git pull<CR>"; }
{ mode = "n"; key = "<leader>gd"; action = "<cmd>Gvdiffsplit<CR>"; } # diff current file
];
};
}