Use nixvim
This commit is contained in:
parent
f0217e4640
commit
ecb2a05d60
72 changed files with 691 additions and 1664 deletions
45
modules/home-manager/coding/neovim/plugins/gitsigns.nix
Normal file
45
modules/home-manager/coding/neovim/plugins/gitsigns.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
plugins.gitsigns.enable = true;
|
||||
|
||||
keymaps = lib.mkIf config.plugins.gitsigns.enable [
|
||||
{
|
||||
action = "<cmd>Gitsigns prev_hunk<CR>";
|
||||
key = "[h";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>Gitsigns next_hunk<CR>";
|
||||
key = "]h";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>Gitsigns reset_hunk<CR>";
|
||||
key = "<leader>hr";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>Gitsigns reset_buffer<CR>";
|
||||
key = "<leader>hR";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>Gitsigns stage_hunk<CR>";
|
||||
key = "<leader>hs";
|
||||
mode = ["n" "v"];
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>Gitsigns stage_buffer<CR>";
|
||||
key = "<leader>hS";
|
||||
mode = "x";
|
||||
}
|
||||
|
||||
{
|
||||
action = "<cmd>Gitsigns undo_stage_hunk<CR>";
|
||||
key = "<leader>hu";
|
||||
mode = "x";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue