fix(lsp): set 'smoothscroll' in docs hover #30748

This commit is contained in:
Justin M. Keyes 2024-10-11 00:50:09 -07:00 committed by GitHub
parent 165613ee72
commit c3cb702ac7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1656,6 +1656,7 @@ function M.open_floating_preview(contents, syntax, opts)
vim.wo[floating_winnr].foldenable = false -- Disable folding.
vim.wo[floating_winnr].wrap = opts.wrap -- Soft wrapping.
vim.wo[floating_winnr].breakindent = true -- Slightly better list presentation.
vim.wo[floating_winnr].smoothscroll = true -- Scroll by screen-line instead of buffer-line.
vim.bo[floating_bufnr].modifiable = false
vim.bo[floating_bufnr].bufhidden = 'wipe'