mirror of
https://github.com/neovim/neovim.git
synced 2026-03-28 03:12:00 +00:00
fix(lsp): ensure the codelens on the first line is visible
This commit is contained in:
@@ -259,6 +259,12 @@ function Provider:on_win(toprow, botrow)
|
||||
virt_lines_overflow = 'scroll',
|
||||
hl_mode = 'combine',
|
||||
})
|
||||
|
||||
-- Fix https://github.com/neovim/neovim/issues/16166
|
||||
-- Make sure the code lens on the first line is visible when updating.
|
||||
if row == 0 then
|
||||
vim.cmd('normal! zb')
|
||||
end
|
||||
end
|
||||
self.row_version[row] = self.version
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user