nix-config/modules/home-manager/coding/neovim/config/plugins/fugitive.nix
2025-06-12 13:00:10 +01:00

18 lines
339 B
Nix

{ config, lib, ... }:
{
plugins.fugitive.enable = true;
keymaps = lib.mkIf config.plugins.fugitive.enable [
{
key = "<leader>gc";
action = "<cmd>Git commit<CR><C-w>K";
}
{
# Open the ":Git" window in its own buffer, not a split.
key = "<leader>gs";
action = "<cmd>0Git<CR>";
}
];
}