karb94 / neoscroll.nvim

Smooth scrolling neovim plugin written in lua
MIT License
1.46k stars 36 forks source link

which-key <c-d> <c-u> scrolling is broken with neoscroll.nvim enabled #111

Open den-is opened 2 months ago

den-is commented 2 months ago

I discovered that while neoscroll plugin is enabled which-key window scrolling is not working. Disabling neoscroll fixed issue. I'm not lua/neovim pro, and was not able to discover if it is possible to disable neoscroll for whick-key, or how to make which-key to work while neoscroll is enabled.

I have created issue in both repos: https://github.com/folke/which-key.nvim/issues/839 - This is issue kinda has more details and example setup.

karb94 commented 2 months ago

Thanks for reporting the issue. This is likely because which-key does not switch focus to the which-key floating window. This is a similar issue to #79 where telescope creates a preview window that is not in focus.

Neoscroll can now scroll non-active windows but I'll need to check how which-key implements window scrolling before I can say for sure I can build support for it.