update nvim: add back from terminal shortcut

This commit is contained in:
Yuan Chiu 2025-04-29 15:14:40 +08:00
parent fd46cc290a
commit 00807fc9e7

View File

@ -39,6 +39,9 @@ return {
-- 添加第二個快捷鍵映射
vim.api.nvim_set_keymap('n', '<C-`>', '<cmd>ToggleTerm<CR>', { noremap = true, silent = true })
-- 添加Alt+Esc鍵離開終端模式回到Normal Mode
vim.api.nvim_set_keymap('t', '<A-Esc>', [[<C-\><C-n>]], { noremap = true, silent = true })
end,
},
}