Skip to content

Commit eeb58bb

Browse files
committed
add terminal escape
1 parent c04ab68 commit eeb58bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/init.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ local function vmap(shortcut, command)
1414
map('v', shortcut, command)
1515
end
1616

17+
local function tmap(shortcut, command)
18+
map('t', shortcut, command)
19+
end
20+
1721
vim.opt.updatetime = 100
1822
-- disable netrw at the very start of your init.lua (strongly advised)
1923
vim.g.loaded_netrw = 1
@@ -91,6 +95,8 @@ nmap("<S-H>", ":BufferLineCyclePrev<cr>")
9195
nmap("<leader>c", ":Bdelete<cr>")
9296
vmap(">", ">gv")
9397
vmap("<", "<gv")
98+
tmap("<Esc>", "<C-\\><C-n>")
99+
94100

95101
require("neo-tree").setup({
96102
close_if_last_window = true, -- Close Neo-tree if it is the last window left in the tab

0 commit comments

Comments
 (0)