From e7141465b18e8371c8689421ff3d534670ab3aa4 Mon Sep 17 00:00:00 2001 From: Alexander Muszynski Date: Thu, 26 Sep 2024 11:57:41 -0400 Subject: [PATCH] added lazygit plugin, removed toggleterm lazygit added much easier via dedicated plugin versus hacking it with toggleterm. Already using TMUX so didn't make sense to use toggleterm as well. --- lua/custom/plugins/init.lua | 7 ------- lua/custom/plugins/lazygit.lua | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 lua/custom/plugins/lazygit.lua diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 75a0a23..a8047e1 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -12,11 +12,4 @@ return { end, ft = { 'markdown' }, }, - - { - 'akinsho/toggleterm.nvim', - version = '*', - opts = {--[[ things you want to change go here]] - }, - }, } diff --git a/lua/custom/plugins/lazygit.lua b/lua/custom/plugins/lazygit.lua new file mode 100644 index 0000000..911d71c --- /dev/null +++ b/lua/custom/plugins/lazygit.lua @@ -0,0 +1,19 @@ +return { + 'kdheepak/lazygit.nvim', + cmd = { + 'LazyGit', + 'LazyGitConfig', + 'LazyGitCurrentFile', + 'LazyGitFilter', + 'LazyGitFilterCurrentFile', + }, + -- optional for floating window border decoration + dependencies = { + 'nvim-lua/plenary.nvim', + }, + -- setting the keybinding for LazyGit with 'keys' is recommended in + -- order to load the plugin when the command is run for the first time + keys = { + { 'gg', 'LazyGit', desc = 'LazyGit' }, + }, +}