Changed bind as I want to be able to make git commits in the term

This commit is contained in:
Warwick 2023-08-09 16:07:39 +01:00
parent 3189db8f98
commit 9e104a03fc

View file

@ -7,7 +7,7 @@ require("toggleterm").setup({
-- Get out of terminal! -- Get out of terminal!
function _G.set_terminal_keymaps() function _G.set_terminal_keymaps()
local opts = {buffer = 0} local opts = {buffer = 0}
vim.keymap.set('t', '<esc>', [[<C-\><C-n>]], opts) vim.keymap.set('t', '<leader><esc>', [[<C-\><C-n>]], opts)
vim.keymap.set('t', '<C-w>', [[<C-\><C-n><C-w>]], opts) vim.keymap.set('t', '<C-w>', [[<C-\><C-n><C-w>]], opts)
end end
vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()') vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')