Changed bind as I want to be able to make git commits in the term
This commit is contained in:
parent
3189db8f98
commit
9e104a03fc
1 changed files with 1 additions and 1 deletions
|
|
@ -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()')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue