akinsho / akinsho/toggleterm.nvim

[BUG] `insert_mappings=false` not working

未关闭
#605 1 条评论 5 个 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

I have this configuration:
```
config = function()
require("toggleterm").setup({
open_mapping = [[t]],
start_in_insert = true,
-- terminal_mappings = true,
insert_mappings = false, -- whether or not the open mapping applies in insert mode
direction = "horizontal",
close_on_exit = true, -- close the terminal window when the process exits
})
end,
```
with leader being spacebar, when hitting spacebar to separate words it keeps waiting for the next key and only option it apears in `which key` is toggle term

### Expected Behavior

`insert_mappings=false` should prevent me from hitting `t` to close the terminal while writing

### Steps To Reproduce

1. Copy plugin configuration
2. Set spacebar as `leader`
3. Open terminal with `t]`
4. Hit spacebar

### Environment

```Markdown
- OS: Archlinux
- neovim version: 10.1
- Shell: Zsh
```

### Anything else?

_No response_

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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