diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 50a6734..68180c7 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -26,5 +26,17 @@ require("lazy").setup({ "neovim/nvim-lspconfig", -- file explorer on the side - "nvim-tree/nvim-tree.lua" + "nvim-tree/nvim-tree.lua", + + -- lazygit integration + + { + "kdheepak/lazygit.nvim", + lazy = false, + -- optional for floating window border decoration + dependencies = { + "nvim-lua/plenary.nvim", + }, + }, + }) diff --git a/plugin/keymap.lua b/plugin/keymap.lua index a8c62c7..edd76e2 100644 --- a/plugin/keymap.lua +++ b/plugin/keymap.lua @@ -32,6 +32,9 @@ map('n', 'x', ':tabclose', opts) map('n', 'n', ':$tabnew', opts) map('n', 's', ':$tab split', opts) +-- lazygit +map('n', 'gg', 'LazyGit', opts) + ----------------- -- Visual mode -- -----------------