Move neovim/nixvim configuration

This commit is contained in:
Oliver Davies 2025-07-26 02:35:57 +01:00
parent 32e28379e2
commit 6c1b494e82
56 changed files with 438 additions and 404 deletions

View file

@ -0,0 +1,48 @@
{
flake.modules.nixvim.custom = {
plugins.gitsigns.enable = true;
keymaps = [
{
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 = "n";
}
{
action = "<cmd>Gitsigns undo_stage_hunk<CR>";
key = "<leader>hu";
mode = "x";
}
];
};
}