Skip to content

Commit 5e0749c

Browse files
committed
feat: add terminal mode escape keybind
Maps Escape key to exit terminal mode using Ctrl-\ Ctrl-n sequence. Improves terminal workflow by providing intuitive way to return to normal mode from terminal insert mode. Signed-off-by: Marcelo Borges <[email protected]>
1 parent 1d99b14 commit 5e0749c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/config/keymaps.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ local map = LazyVim.safe_keymap_set
66

77
-- -- Repeat last macro
88
map("", ",", "@@", { desc = "Run last macro" })
9+
10+
map("t", "<Esc>", "<C-\\><C-n>", { desc = "Exit terminal mode" })

0 commit comments

Comments
 (0)