F12 terminal toggling

This commit is contained in:
Jesper Fussing Mørk 2022-10-13 16:45:17 +02:00
parent 652106e353
commit 0121bf564e
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ vim.keymap.set("n", "<F5>", "<cmd>TroubleToggle document_diagnostics<cr>",
--TERMINAL BINDINGS --TERMINAL BINDINGS
vim.api.nvim_set_keymap('n', '<F12>', "<cmd>ToggleTerm<CR>", { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<F12>', "<cmd>ToggleTerm<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<F36>', "<cmd>ToggleTermToggleAll<CR>", { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '<F36>', "<cmd>ToggleTermToggleAll<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap('t', '<F36>', "<cmd>ToggleTermToggleAll<CR>", { noremap = true, silent = true }) vim.api.nvim_set_keymap('t', '<F12>', "<cmd>ToggleTermToggleAll<CR>", { noremap = true, silent = true })
vim.keymap.set('t', '<ESC>', "<C-\\><C-n>", vim.keymap.set('t', '<ESC>', "<C-\\><C-n>",
{ noremap = true, silent = true } { noremap = true, silent = true }
) )