nvim.nix/config/plugins/git/lazygit.nix
2024-08-08 09:58:48 +08:00

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")
'';
}