akinsho / akinsho/toggleterm.nvim

[BUG] TermSelect doesn't show anything

Abierto
#578 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Lua
Estrellas
5.6k
Forks
206
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.