mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(lsp): remove extra notify on empty hover
This commit is contained in:
@@ -128,13 +128,6 @@ function M.hover(config)
|
|||||||
-- Remove last linebreak ('---')
|
-- Remove last linebreak ('---')
|
||||||
contents[#contents] = nil
|
contents[#contents] = nil
|
||||||
|
|
||||||
if vim.tbl_isempty(contents) then
|
|
||||||
if config.silent ~= true then
|
|
||||||
vim.notify('No information available')
|
|
||||||
end
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local _, winid = lsp.util.open_floating_preview(contents, format, config)
|
local _, winid = lsp.util.open_floating_preview(contents, format, config)
|
||||||
|
|
||||||
api.nvim_create_autocmd('WinClosed', {
|
api.nvim_create_autocmd('WinClosed', {
|
||||||
|
Reference in New Issue
Block a user