remaps.lua: term shortcut is now <leader>t and acts in current buffer

This commit is contained in:
kalmenn 2024-01-14 22:29:32 +01:00
parent a23a31839c
commit 9ee6f4d0e4
Signed by: kalmenn
GPG key ID: F500055C44BC3834

View file

@ -17,4 +17,4 @@ vim.keymap.set("t", "<Esc>", "<C-\\><C-n>")
vim.keymap.set("t", "<C-v><Esc>", "<Esc>") -- Verbatim escape (send an esc to underlying program) vim.keymap.set("t", "<C-v><Esc>", "<Esc>") -- Verbatim escape (send an esc to underlying program)
-- fast open a new terminal -- fast open a new terminal
vim.keymap.set("n", "<C-t>", "<cmd>vs<CR><cmd>term<CR>") vim.keymap.set("n", "<leader>t", "<cmd>term<CR>", { nowait = true })