vim.lsp.buf.format() scrolls window on nightly #25370
Labels
api
libnvim, Nvim RPC API
bug-regression
wrong behavior that was introduced in a previous commit (please bisect)
has:bisected
issue has been tracked to a specific commit
lsp
Milestone
Hey, I have just noticed that commit 9b9030f introduces an unexpected window scrolling. Whenever I call
vim.lsp.buf.format()
I end up with window scrolled as if I usedzb
.CleanShot.2023-09-26.at.09.51.06.mp4
This appears to be affected by both
scrolloff
and window size. If the window contains fewer lines, then it does not necessarily happen.Config for reproduction:
Originally posted by @TymekDev in #24889 (comment)
The text was updated successfully, but these errors were encountered: