From 7ad0d308e5e379d881a43b0a14a6a1f1d5521d29 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Thu, 1 May 2025 11:18:47 +0800 Subject: [PATCH] nvim set: terminal shortcut --- .../nvim/exact_lua/exact_plugins/exact_components/terminal.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_components/terminal.lua b/dot_config/nvim/exact_lua/exact_plugins/exact_components/terminal.lua index 9a1f7ac..f16356e 100644 --- a/dot_config/nvim/exact_lua/exact_plugins/exact_components/terminal.lua +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_components/terminal.lua @@ -39,7 +39,10 @@ return { } -- 添加第二個快捷鍵映射 + vim.api.nvim_set_keymap('n', '', 'ToggleTerm', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', 'ToggleTerm', { noremap = true, silent = true }) + vim.api.nvim_set_keymap('t', '', 'ToggleTerm', { noremap = true, silent = true }) + vim.api.nvim_set_keymap('t', '', 'ToggleTerm', { noremap = true, silent = true }) -- 添加Alt+Esc鍵離開終端模式,回到Normal Mode vim.api.nvim_set_keymap('t', '', [[]], { noremap = true, silent = true })