Added lazygit to the roster

This commit is contained in:
Jimmy Bates 2024-06-30 16:13:05 -07:00
parent 4761ee30c5
commit 9676f7e563
2 changed files with 20 additions and 2 deletions

View File

@ -302,13 +302,11 @@ require('lazy').setup({
['<leader>R'] = { name = '[R]efactor', _ = 'which_key_ignore' },
['<leader>u'] = { name = 'Tro[U]ble', _ = 'which_key_ignore' },
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
['<leader>H'] = { name = 'Git [H]unk', _ = 'which_key_ignore' },
['<leader>h'] = { name = 'Copilot C[H]at', _ = 'which_key_ignore' },
--['<leader>e'] = { name = '[E]xplore files', _ = 'which_key_ignore' },
}
-- visual mode
require('which-key').register({
['<leader>h'] = { 'Git [H]unk' },
['<leader>R'] = { name = '[R]efactor', _ = 'which_key_ignore' },
['<leader>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',
--

View File

@ -0,0 +1,19 @@
return {
'kdheepak/lazygit.nvim',
cmd = {
'LazyGit',
'LazyGitConfig',
'LazyGitCurrentFile',
'LazyGitFilter',
'LazyGitFilterCurrentFile',
},
event = 'VeryLazy',
dependencies = {
'nvim-lua/plenary.nvim',
},
keys = {
{ '<C-g>', '<cmd>LazyGit<cr>', mode = { 'n', 'v' }, desc = 'LazyGit' },
{ '<C-g>', 'q', mode = { 't' }, desc = 'Close LazyGit' },
{ '<esc>', '[[<C-><C-n>]]', mode = { 't' }, desc = 'Close LazyGit' },
},
}