akinsho / akinsho/toggleterm.nvim

Cannot open multiple terminals while in terminal mode

Đang mở
#533 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Lua
Star
5.6k
Fork
206
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Current Behavior

The current setup allow me to spawn multiple terminals, just like expected, meaning that `1` and `2` opens terminal 1 and 2 respectively. The current issue is that doing `1` and then `2`, the terminal does not split in two, but instead closes the terminal, same as doing ``.

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[""] = false
lvim.builtin.terminal.open_mapping = ""
lvim.builtin.terminal.active = true

{
"akinsho/toggleterm.nvim",
config = function()
require("toggleterm").setup({
open_mapping = [[]],
terminal_mappings = true,
direction = "horizontal",
size = 30,
})
end
}
```

### Environment

```Markdown
- OS: MacOS Sonoma 14.1.1 (23B81)
- neovim version: 0.9.0
- Shell: zsh
```

### Anything else?

_No response_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.