Skip to content

Commit 8ec0da0

Browse files
authored
Merge pull request #118 from MikaelFangel/init-lazygit
Init lazygit
2 parents 4199cfe + 72e9349 commit 8ec0da0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

config/default.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
./utils/auto-pairs.nix
1717
./utils/autosave.nix
1818
./utils/blankline.nix
19+
./utils/lazygit.nix
1920
./utils/telescope.nix
2021
./utils/toggleterm.nix
2122
./utils/which-key.nix
@@ -171,6 +172,16 @@
171172
options.desc = "Go to the previous tab";
172173
}
173174

175+
# LazyGit
176+
{
177+
mode = "n";
178+
key = "<leader>lg";
179+
action = "<cmd>LazyGit<CR>";
180+
options = {
181+
desc = "LazyGit";
182+
};
183+
}
184+
174185
# Terminal
175186
{
176187
# Escape terminal mode using ESC

config/utils/lazygit.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
plugins.lazygit = {
3+
enable = true;
4+
};
5+
}

0 commit comments

Comments
 (0)