Re-add vim-fugitive
This commit is contained in:
parent
b42daccb99
commit
c1ccef5e32
1 changed files with 18 additions and 0 deletions
18
modules/nixvim/fugitive.nix
Normal file
18
modules/nixvim/fugitive.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
flake.modules.nixvim.custom = {
|
||||||
|
plugins.fugitive.enable = true;
|
||||||
|
|
||||||
|
keymaps = [
|
||||||
|
{
|
||||||
|
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>";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue