feat: add lazygit shortcut (<leader>gg) via addons/term

This commit is contained in:
QQ 2026-06-11 17:01:09 +08:00
parent 131bcb8bf5
commit 0727f447d8
1 changed files with 5 additions and 4 deletions

View File

@ -38,10 +38,11 @@ G.map({
{ 'n', '<right>', ':vertical resize +5<CR>' },
})
-- 终端 / Reasonixaddons/term持久化 + 自适应分屏)
-- 终端addons/term持久化 + 自适应分屏)
local T = require('addons.term')
G.map({
{ 'n', '<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-t>', T.shell, { noremap = true } },
{ 'i', '<c-t>', T.shell, { noremap = true } },
{ 'n', '<C-i>', function() T.open('reasonix') end, { noremap = true } },
{ 'n', '<leader>gg', function() T.open('lazygit') end, { noremap = true } },
})