akinsho / akinsho/toggleterm.nvim

[BUG] Terminal doesnt open in insert mode if switching from Term1 to Term2

未关闭
#657 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Lua
星标
5.6k
派生
206
PR 合并指标
30 天内没有已合并 PR

描述

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Current Behavior

Creating a terminal when in another toggleterm makes nvim go into normal mode.
Switching to an already existing terminal does not cause this issue

### Expected Behavior

Creating a terminal doesnt make nvim leave insert mode

### Steps To Reproduce

1. Open a toggleterm with my config
2. Without leaving this terminal, try opening a new one
3. The cursor in the new terminal will be at the bottom left corner and out of insert mode

Here's the config:
```
autochdir = true,
direction = "float",
close_on_exit = false,
persist_mode = false,
```

### Environment

```Markdown
- OS:Ubuntu
- neovim version:0.11
- Shell:zsh
```

### Anything else?

_No response_

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。