akinsho / akinsho/toggleterm.nvim

[BUG] Floating window does not inherit name

未关闭
#549 0 条评论 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

![image](https://github.com/akinsho/toggleterm.nvim/assets/52542390/174b5cff-aa2e-40ac-b2e8-c9b811be654b)
At the botttom we can se name is provided but the term gets null

### Expected Behavior

Floating terminal should have been named "Will it work?"

### Steps To Reproduce

My config:

```
require("toggleterm").setup({
size = function(term)
if term.direction == "horizontal" then
return 15
elseif term.direction == "vertical" then
return vim.o.columns * 0.4
end
end,
open_mapping = "",
direction = "vertical"
})

vim.keymap.set("n", "", ":ToggleTerm direction=float name='Will it work?'",
{ desc = "Floating term" })
```
Just press Alt-F.

### Environment

```Markdown
- OS:Windows
- neovim version: 0.9.4
- Shell: Powershell
```

### Anything else?

This could be windows specific problem. A whille ago this config worked in linux tho I have not double checked

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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