Added lazygit to the roster
This commit is contained in:
parent
4761ee30c5
commit
9676f7e563
3
init.lua
3
init.lua
|
@ -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',
|
||||
--
|
||||
|
|
|
@ -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' },
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue