diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 8921648b..062fcd1e 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -64,3 +64,16 @@ vim.cmd([[ xnoremap * :call g:VSetSearch('/')/=@/ xnoremap # :call g:VSetSearch('?')?=@/ ]]) + +vim.keymap.set("n", "gg", function() + require("lazy.util").open_cmd({ "lazygit" }, { + terminal = true, + close_on_exit = true, + enter = true, + float = { + size = { width = 0.9, height = 0.9 }, + margin = { top = 0, right = 0, bottom = 0, left = 0 }, + }, + }) +end, { desc = "Lazygit" }) +