feat: add lazygit shortcut (<leader>gg) via addons/term
This commit is contained in:
parent
131bcb8bf5
commit
0727f447d8
|
|
@ -38,10 +38,11 @@ G.map({
|
||||||
{ 'n', '<right>', ':vertical resize +5<CR>' },
|
{ 'n', '<right>', ':vertical resize +5<CR>' },
|
||||||
})
|
})
|
||||||
|
|
||||||
-- 终端 / Reasonix(addons/term:持久化 + 自适应分屏)
|
-- 终端(addons/term:持久化 + 自适应分屏)
|
||||||
local T = require('addons.term')
|
local T = require('addons.term')
|
||||||
G.map({
|
G.map({
|
||||||
{ 'n', '<c-t>', T.shell, { noremap = true } },
|
{ 'n', '<c-t>', T.shell, { noremap = true } },
|
||||||
{ 'i', '<c-t>', T.shell, { noremap = true } },
|
{ 'i', '<c-t>', T.shell, { noremap = true } },
|
||||||
{ 'n', '<C-i>', function() T.open('reasonix') end, { noremap = true } },
|
{ 'n', '<C-i>', function() T.open('reasonix') end, { noremap = true } },
|
||||||
|
{ 'n', '<leader>gg', function() T.open('lazygit') end, { noremap = true } },
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue