diff --git a/init.lua b/init.lua index 6f062a80..d8d18d47 100644 --- a/init.lua +++ b/init.lua @@ -302,13 +302,11 @@ require('lazy').setup({ ['R'] = { name = '[R]efactor', _ = 'which_key_ignore' }, ['u'] = { name = 'Tro[U]ble', _ = 'which_key_ignore' }, ['w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, - ['H'] = { name = 'Git [H]unk', _ = 'which_key_ignore' }, ['h'] = { name = 'Copilot C[H]at', _ = 'which_key_ignore' }, --['e'] = { name = '[E]xplore files', _ = 'which_key_ignore' }, } -- visual mode require('which-key').register({ - ['h'] = { 'Git [H]unk' }, ['R'] = { name = '[R]efactor', _ = 'which_key_ignore' }, ['h'] = { name = 'Copilot C[H]at', _ = 'which_key_ignore' }, }, { mode = 'v' }) @@ -547,6 +545,7 @@ require('lazy').setup({ require 'custom.plugins.refactoring', require 'custom.plugins.trouble', require 'custom.plugins.persistence', + require 'custom.plugins.lazygit', -- require 'custom.plugins.dial', -- require 'custom.plugins.mason', -- diff --git a/lua/custom/plugins/lazygit.lua b/lua/custom/plugins/lazygit.lua new file mode 100644 index 00000000..e6f84ebf --- /dev/null +++ b/lua/custom/plugins/lazygit.lua @@ -0,0 +1,19 @@ +return { + 'kdheepak/lazygit.nvim', + cmd = { + 'LazyGit', + 'LazyGitConfig', + 'LazyGitCurrentFile', + 'LazyGitFilter', + 'LazyGitFilterCurrentFile', + }, + event = 'VeryLazy', + dependencies = { + 'nvim-lua/plenary.nvim', + }, + keys = { + { '', 'LazyGit', mode = { 'n', 'v' }, desc = 'LazyGit' }, + { '', 'q', mode = { 't' }, desc = 'Close LazyGit' }, + { '', '[[]]', mode = { 't' }, desc = 'Close LazyGit' }, + }, +}