summaryrefslogtreecommitdiff
path: root/.config/nvim/lua
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-10-06 22:46:35 +0200
committeradam <56338480+adastx@users.noreply.github.com>2022-10-06 22:46:35 +0200
commit44d511549718d6e4ec7d22975240b2ab87e1601a (patch)
treea4088a907ef350b902842a19250c91f60adc9a4c /.config/nvim/lua
parent872fe99c314fa7ad5084673a38f8e09d4291d8a0 (diff)
nvim: easy mapping to escape terminal mode
Diffstat (limited to '.config/nvim/lua')
-rw-r--r--.config/nvim/lua/mappings.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua
index 74f33b8..7859795 100644
--- a/.config/nvim/lua/mappings.lua
+++ b/.config/nvim/lua/mappings.lua
@@ -8,7 +8,8 @@ map('n', '<C-L>', ':nohl<CR><C-L>', opts)
map('n', 'n', 'nzzzv', opts)
map('n', 'N', 'Nzzzv', opts)
-- map('i', 'kj', '<Esc>', opts)
-map('t', 'kj', '<C-\\><C-n>', { noremap = true })
+-- map('t', 'kj', '<C-\\><C-n>', { noremap = true })
+map('t', '<C-\\>', '<C-\\><C-n>', { noremap = true })
map('i', ',', ',<c-g>u', opts)
map('i', '.', '.<c-g>u', opts)