You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.9.5
Operating system/version
macOS 14.0 (23A344)
Describe the bug
In the hover/signature window, the thumb position of scrollbars is wrong because its calculation is based on the position of the cursor in the buffer and not on the buffer lines displayed in the window.
Add and configure an LSP server (in this example lua_lsp) and a few keymaps to interact with the hover window (see details below).
Display a hover window (by pressing the K key in normal mode in my case) then use require("noice.lsp").scroll until the last line of the buffer is displayed (by pressing <C-f> several times in my case). You can see that the position of the scrollbar thumb is wrong.
Focus the hover window (by pressing K in normal mode in my case), press G to jump to the last line of the buffer, move the cursor up a few lines (by pressing 10k for example). As you can see once again : the position of the scrollbar thumb is wrong.
Expected Behavior
The position of the scrollbar thumb should be correct and based on the buffer lines displayed in the window rather than the cursor position.
Did you check docs and existing issues?
Neovim version (nvim -v)
0.9.5
Operating system/version
macOS 14.0 (23A344)
Describe the bug
In the hover/signature window, the thumb position of scrollbars is wrong because its calculation is based on the position of the cursor in the buffer and not on the buffer lines displayed in the window.
See the attached video.
without_fix.mp4
Steps To Reproduce
K
key in normal mode in my case) then userequire("noice.lsp").scroll
until the last line of the buffer is displayed (by pressing<C-f>
several times in my case). You can see that the position of the scrollbar thumb is wrong.K
in normal mode in my case), pressG
to jump to the last line of the buffer, move the cursor up a few lines (by pressing10k
for example). As you can see once again : the position of the scrollbar thumb is wrong.Expected Behavior
The position of the scrollbar thumb should be correct and based on the buffer lines displayed in the window rather than the cursor position.
Repro
The text was updated successfully, but these errors were encountered: