mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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:
parent
05d9e6a9e8
commit
b4599acbf8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user