2024-03-24 23:39:49 +01:00
|
|
|
{
|
2024-05-29 20:40:03 +02:00
|
|
|
config,
|
|
|
|
lib,
|
2024-03-24 23:39:49 +01:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-05-29 20:40:03 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|