nix-config/modules/home-manager/nvim/gitsigns.nix
Gabe Venberg 6f0e167087 added enable option to nvim
changed home-manager personal config namespace from home.* to user.*
2024-05-29 13:40:03 -05:00

29 lines
524 B
Nix

{
config,
lib,
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";
};
}
];
};
};
}