When the wrap_at option not pass to vim.lsp.util._make_floating_popup_size(), it calculates height with unwrapped lines.
Actually the nvim-cmp shows content with wrapped lines in docs view.
So when the content has very long text, the calculated height is smaller than actually required in docs view.
When the
wrap_at
option not pass tovim.lsp.util._make_floating_popup_size()
, it calculates height with unwrapped lines. Actually the nvim-cmp shows content with wrapped lines in docs view. So when the content has very long text, the calculated height is smaller than actually required in docs view.Before:
After fixed: