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