dotfiles/nix/nvim/gitsigns.nix

26 lines
429 B
Nix
Raw Normal View History

{
configs,
pkgs,
...
}: {
programs.nixvim = {
plugins.gitsigns = {
enable = true;
};
2024-03-20 19:18:05 +01:00
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";
};
}
];
};
}