30 lines
509 B
Nix
30 lines
509 B
Nix
{...}: {
|
|
plugins.lazygit = {
|
|
enable = true;
|
|
};
|
|
|
|
keymaps = [
|
|
{
|
|
mode = "n";
|
|
key = "<leader>gg";
|
|
action = "<cmd>LazyGit<cr>";
|
|
options = {
|
|
desc = "Open LazyGit";
|
|
};
|
|
}
|
|
|
|
{
|
|
mode = "n";
|
|
key = "<leader>lr";
|
|
action = "<cmd>lua require(\"telescope\").extensions.lazygit.lazygit()<cr>";
|
|
options = {
|
|
desc = "List repositories";
|
|
};
|
|
}
|
|
];
|
|
|
|
extraConfigLua = ''
|
|
require("telescope").load_extension("lazygit")
|
|
'';
|
|
}
|