nix-config/terminal/nvim/gitsigns.nix

26 lines
429 B
Nix
Raw Normal View History

2024-03-24 23:39:49 +01:00
{
configs,
pkgs,
...
}: {
programs.nixvim = {
plugins.gitsigns = {
enable = true;
};
plugins.which-key.registrations = {
"<leader>g" = "+git";
};
keymaps = [
{
action = ":Gitsigns toggle_current_line_blame<CR>";
key = "<leader>gb";
mode = "n";
options = {
silent = true;
desc = "toggle git blame";
};
}
];
};
}