diff --git a/modules/nixvim/fugitive.nix b/modules/nixvim/fugitive.nix new file mode 100644 index 00000000..ac800972 --- /dev/null +++ b/modules/nixvim/fugitive.nix @@ -0,0 +1,18 @@ +{ + flake.modules.nixvim.custom = { + plugins.fugitive.enable = true; + + keymaps = [ + { + key = "gc"; + action = "Git commitK"; + } + + { + # Open the ":Git" window in its own buffer, not a split. + key = "gs"; + action = "0Git"; + } + ]; + }; +}