akinsho / akinsho/toggleterm.nvim

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

Aperta
#657 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Lua
Stelle
5.6k
Fork
206
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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_

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.