mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
fix(lsp): add missing silent check in lsp hover handler (#22763)
Fixup to #21531.
This commit is contained in:
@@ -364,7 +364,9 @@ function M.hover(_, result, ctx, config)
|
||||
local markdown_lines = util.convert_input_to_markdown_lines(result.contents)
|
||||
markdown_lines = util.trim_empty_lines(markdown_lines)
|
||||
if vim.tbl_isempty(markdown_lines) then
|
||||
vim.notify('No information available')
|
||||
if config.silent ~= true then
|
||||
vim.notify('No information available')
|
||||
end
|
||||
return
|
||||
end
|
||||
return util.open_floating_preview(markdown_lines, 'markdown', config)
|
||||
|
Reference in New Issue
Block a user