akinsho / akinsho/toggleterm.nvim

[BUG] Vertical and Horizontal directions don't work when Snacks Explorer focused

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

I get an invalid direction when I have Snacks Explorer focused. Spent a bunch of time trouble shooting, and realized this was the only cause. It only happens at first launch when the picker is automatically focused. It seems like it's probably a ToggleTerm issue so I'm posting here.

This is the only error message I get:
```
...ckages/start/toggleterm.nvim/lua/toggleterm/terminal.lua:466: Invalid terminal direction
```

### Expected Behavior

ToggleTerm should toggle regardless.

### Steps To Reproduce

1. nvim .
2. Snacks Explorer is focused
3. C-\
4. Error

### Environment

```Markdown
- OS:
- neovim version:
- Shell:
```

### Anything else?

_No response_

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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