akinsho / akinsho/toggleterm.nvim

[BUG] TermSelect doesn't show anything

Aperta
#578 1 commento 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

I'm using mutiple floating terminals and switch between them using `TermSelect`.

Sometimes (didn't find how this arises yet), `TermSelect` doesn't respond (no selector UI is displayed).
My terminals are still here as I still can open them using ` ToggleTerm`.

### Expected Behavior

The terminal selection UI should be displayed.

### Steps To Reproduce

(instructions to reproduce the problem to come when things become clearer to me).

Here's my config (Lazy.nvim block):

```lua
{
"akinsho/toggleterm.nvim",
config = function()
require("toggleterm").setup({
shade_terminals = false,
direction = "float",
float_opts = {
border = "curved",
},
winbar = {
enabled = true,
name_formatter = function(term) -- term: Terminal
return term.name
end,
},
open_mapping = [[]],
on_open = function()
-- Disable troll-stopper highlight
vim.cmd([[highlight TrollStopper ctermbg = none guibg = none]])
end,
on_close = function()
-- Enable troll-stopper highlight
vim.cmd([[highlight TrollStopper ctermbg = red guibg = red]])
end,
})

vim.api.nvim_create_user_command("TermNew", function()
term = require("toggleterm.terminal").Terminal:new({})
term:spawn()
term:toggle()
end, { bang = true })
end,
keys = {
{ "", "TermNew", desc = "NeoTree" },
{ "", "ToggleTermSetName", mode = { "n", "t" }, desc = "NeoTree" },
{ "", "ToggleTermSetName", mode = { "n", "t" }, desc = "NeoTree" },
{ "", "TermNew", mode = { "n", "t" }, desc = "NeoTree" },
{ "", "TermNew", mode = { "n", "t" }, desc = "NeoTree" },
{ "", "TermSelect", mode = { "n", "t" }, desc = "NeoTree" },
{ "", "TermSelect", mode = { "n", "t" }, desc = "NeoTree" },
},
cmd = { "TermNew" },
},

```

### Environment

```Markdown
- OS: Debian 12
- neovim version: v0.9.5
- 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.