From c651fe77bfce8c19fd0e785c26a1739ff8c749c1 Mon Sep 17 00:00:00 2001 From: jasmine Date: Wed, 7 Aug 2024 14:28:02 +0800 Subject: [PATCH] Update lazygit --- config/plugins/git/lazygit.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/config/plugins/git/lazygit.nix b/config/plugins/git/lazygit.nix index d3e31d4..8add97d 100644 --- a/config/plugins/git/lazygit.nix +++ b/config/plugins/git/lazygit.nix @@ -8,10 +8,25 @@ keymaps = [ { mode = "n"; - key = "lg"; + key = "gg"; action = "LazyGit"; - options.desc = "LazyGit"; + options = { + desc = "Open LazyGit"; + }; + } + + { + mode = "n"; + key = "lr"; + action = "lua require(\"telescope\").extensions.lazygit.lazygit()"; + options = { + desc = "List repositories"; + }; } ]; + + extraConfigLua = '' + require("telescope").load_extension("lazygit") + ''; }