diff --git a/configs/nvim/lua/mappings.lua b/configs/nvim/lua/mappings.lua index c81dd6e..a4c684f 100644 --- a/configs/nvim/lua/mappings.lua +++ b/configs/nvim/lua/mappings.lua @@ -23,6 +23,10 @@ local function init() map('n', 'r', 'lua vim.lsp.buf.references()') map('n', 's', 'lua vim.lsp.buf.document_symbol()') + -------------------- LAZYGIT ------------------------------- + -- Install docs : https://github.com/jesseduffield/lazygit + map('n', 'lg', 'LazyGit') + -------------------- COMMANDS ------------------------------ cmd 'au TextYankPost * lua vim.highlight.on_yank {on_visual = false}' -- disabled in visual mode end diff --git a/configs/nvim/lua/plugins/init.lua b/configs/nvim/lua/plugins/init.lua index 5380374..3ad733d 100644 --- a/configs/nvim/lua/plugins/init.lua +++ b/configs/nvim/lua/plugins/init.lua @@ -25,6 +25,7 @@ function install_packages() use 'kyazdani42/nvim-web-devicons' -- removing this line doesn't change the error use 'kyazdani42/nvim-tree.lua' + use 'kdheepak/lazygit.nvim' end function init()