From 693ff850d566149e268ed4795f25f8e768c6a110 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 27 Jun 2021 16:24:55 +0200 Subject: [PATCH] Add lazygit --- configs/nvim/lua/mappings.lua | 4 ++++ configs/nvim/lua/plugins/init.lua | 1 + 2 files changed, 5 insertions(+) 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()