aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-10-11 00:50:09 -0700
committerGitHub <noreply@github.com>2024-10-11 00:50:09 -0700
commitc3cb702ac7a5d6a1515129c80ce143e3bdf5d739 (patch)
tree12b4e3c023c2a75bfc013b59e8b3eb4f41f86c7e /runtime/lua/vim/lsp/util.lua
parent165613ee724bfc580217e10461c6ffc30f2d9074 (diff)
downloadrneovim-c3cb702ac7a5d6a1515129c80ce143e3bdf5d739.tar.gz
rneovim-c3cb702ac7a5d6a1515129c80ce143e3bdf5d739.tar.bz2
rneovim-c3cb702ac7a5d6a1515129c80ce143e3bdf5d739.zip
fix(lsp): set 'smoothscroll' in docs hover #30748
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 882ec22ca6..ebc3f7c55e 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -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'