From 285ea2525fdf31052f26575154ebf3a10f320f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20Jos=C3=A9=20Solano?= Date: Fri, 4 Jul 2025 14:12:06 -0700 Subject: [PATCH] fix(lsp): remove extra notify on empty hover --- runtime/lua/vim/lsp/buf.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua index b0a69fee04..4adaf8e16e 100644 --- a/runtime/lua/vim/lsp/buf.lua +++ b/runtime/lua/vim/lsp/buf.lua @@ -128,13 +128,6 @@ function M.hover(config) -- Remove last linebreak ('---') 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) api.nvim_create_autocmd('WinClosed', {