neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 8e48c02061556b367071cf8bc2a2125e0b224221
parent 865a28155e7b66a16c4e7bd0b8d1220a3f25375a
Author: Igor Lacerda <igorlfs@ufmg.br>
Date:   Thu, 21 Aug 2025 21:15:56 -0300

fix(lsp): handle array with empty string when checking empty hover (#35423)


Diffstat:
Mruntime/lua/vim/lsp/buf.lua | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua @@ -70,8 +70,10 @@ function M.hover(config) elseif result and result.contents then -- Make sure the response is not empty if - (type(result.contents) == 'table' and #(vim.tbl_get(result.contents, 'value') or '') > 0) - or type(result.contents == 'string') and #result.contents > 0 + ( + type(result.contents) == 'table' + and #(vim.tbl_get(result.contents, 'value') or result.contents[1] or '') > 0 + ) or (type(result.contents) == 'string' and #result.contents > 0) then results1[client_id] = result else