aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-04-14 22:29:50 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-04-14 22:29:50 -0400
commitb90c859942af55af9bd7a3624b20bebb286d39ae (patch)
tree5e0412689248afe6f67e4b17ef5fe1f00b77b779
parentf3a53350ef1e762cdd635d1e8622d0055d71cf4b (diff)
downloadhome-b90c859942af55af9bd7a3624b20bebb286d39ae.tar.gz
sneaky modal stuff
-rw-r--r--modules/neovim/nvim/lua/config/keybinds.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/neovim/nvim/lua/config/keybinds.lua b/modules/neovim/nvim/lua/config/keybinds.lua
index 3d1a2fb..3c7ad20 100644
--- a/modules/neovim/nvim/lua/config/keybinds.lua
+++ b/modules/neovim/nvim/lua/config/keybinds.lua
@@ -48,3 +48,11 @@ nmap('<leader>?', '<cmd>FzfLua live_grep_native<CR>', { silent = true })
nmap('<leader>to', '<cmd>te<CR>', { silent = true; desc = "Open a terminal buffer in the current window." })
+vim.keymap.set('t', '<Esc>', '<C-\\><C-n>', { silent = true })
+vim.keymap.set('t', '<C-\\><C-n>', function()
+ vim.keymap.set('t', '<Esc>', '<Esc>', { buffer = true})
+ vim.keymap.set('t', '<C-\\><C-n>', '<C-\\><C-n>', { buffer = true})
+end, { silent = true })
+
+
+