add lazygit

This commit is contained in:
Aditya 2024-03-04 19:22:56 +05:30
parent 7a0ff6d247
commit e673c475a3
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
2 changed files with 22 additions and 0 deletions

View file

@ -11,6 +11,7 @@
./git/diffview.nix
./git/gitsigns.nix
./git/lazygit.nix
./dap/dap.nix

21
config/git/lazygit.nix Normal file
View file

@ -0,0 +1,21 @@
{pkgs, ...}: {
extraPlugins = with pkgs.vimPlugins; [
lazygit-nvim
];
extraConfigLua = ''
require("telescope").load_extension("lazygit")
'';
keymaps = [
{
mode = "n";
key = "<leader>gg";
action = "<cmd>LazyGit<CR>";
options = {
desc = "LazyGit (root dir)";
};
}
];
}