akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.34k stars 172 forks source link

[BUG] Cursor hides when scrolling down #511

Closed bogdan-the-great closed 11 months ago

bogdan-the-great commented 11 months ago

Is there an existing issue for this?

Current Behavior

When normally scrolling down in toggleterm cursor hides and then reappears when scrolling action is over. Same behavior on the minimal config. Neovim's default terminal doesn't have this issue. Both fff and lazygit are lagging. Same with bash.

Expected Behavior

To scroll normally like everywhere else.

Steps To Reproduce

  1. Open a TUI program in toggleterm.
  2. Try to scroll down.
  3. See this issue.

Environment

- OS: Arch Linux 6.5.8-arch1-1 x86_64
- neovim version: 0.9.4
- Shell: ZSH

Anything else?

https://github.com/akinsho/toggleterm.nvim/assets/37738748/4e958dca-b15e-448f-a2c0-8702a8123111

akinsho commented 11 months ago

@piotr-marendowski there is no code is this plugin to mess with a user's cursor at all. I really can't speak for the behaviour of TUI apps inside neovim vs outside or anything. Only that this plugin doesn't have logic like this. Lazygit is the only of your examples I use and it just highlights the cursor it's own way outside of neovim as well this tends to be something that TUI frameworks handle themselves.

If you mean that you can't move the cursor separate to the TUI app, then this is because the TUI app has focus and is in control of the cursor you could use whatever your terminal mapping to enter normal mode is to change this if you want but essentially this plugin doesn't steal or colour the cursor