nvim.nix/config/plugins/git/lazygit.nix

30 lines
509 B
Nix
Raw Normal View History

2024-08-08 09:58:48 +08:00
{...}: {
2024-08-04 21:19:37 +08:00
plugins.lazygit = {
enable = true;
};
keymaps = [
{
mode = "n";
2024-08-07 14:28:02 +08:00
key = "<leader>gg";
2024-08-04 21:19:37 +08:00
action = "<cmd>LazyGit<cr>";
2024-08-07 14:28:02 +08:00
options = {
desc = "Open LazyGit";
};
}
{
mode = "n";
key = "<leader>lr";
action = "<cmd>lua require(\"telescope\").extensions.lazygit.lazygit()<cr>";
options = {
desc = "List repositories";
};
2024-08-04 21:19:37 +08:00
}
];
2024-08-07 14:28:02 +08:00
extraConfigLua = ''
require("telescope").load_extension("lazygit")
'';
2024-08-04 21:19:37 +08:00
}