toggleterm.nvim
toggleterm.nvim copied to clipboard
Cannot open multiple terminals while in terminal mode
Current Behavior
The current setup allow me to spawn multiple terminals, just like expected, meaning that 1<c-t>
and 2<c-t>
opens terminal 1 and 2 respectively. The current issue is that doing 1<c-t>
and then 2<c-t>
, the terminal does not split in two, but instead closes the terminal, same as doing <c-t>
.
Is I do this with command :ToggleTerm 1
and :ToggleTerm 2
it works like expected.
Expected Behavior
The expected behaviour is that spawning a second terminal, the screen will split the screen of the first terminal and open the second one.
Steps To Reproduce
Using lazyvim with lunarvim, this is the current relevant config:
lvim.keys.normal_mode["<c-t>"] = false
lvim.builtin.terminal.open_mapping = "<c-t>"
lvim.builtin.terminal.active = true
{
"akinsho/toggleterm.nvim",
config = function()
require("toggleterm").setup({
open_mapping = [[<c-t>]],
terminal_mappings = true,
direction = "horizontal",
size = 30,
})
end
}
Environment
- OS: MacOS Sonoma 14.1.1 (23B81)
- neovim version: 0.9.0
- Shell: zsh
Anything else?
No response