nix-config/modules/home-manager/nvim/gitsigns.nix

29 lines
524 B
Nix
Raw Normal View History

2024-03-24 23:39:49 +01:00
{
config,
lib,
2024-03-24 23:39:49 +01:00
pkgs,
...
}: {
config = lib.mkIf config.user.nvim.enable {
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";
};
}
];
2024-03-24 23:39:49 +01:00
};
};
}