mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(lsp): correct hover result handling (#30995)
Problem: vim.lsp.buf.hover() displays "No information available" when client_id is not 1. Solution: use vim.tbl_isempty(tbl) instead of #tbl==0
This commit is contained in:
@ -53,7 +53,7 @@ function M.hover(config)
|
||||
end
|
||||
end
|
||||
|
||||
if #results1 == 0 then
|
||||
if vim.tbl_isempty(results1) then
|
||||
if config.silent ~= true then
|
||||
vim.notify('No information available')
|
||||
end
|
||||
|
Reference in New Issue
Block a user