diff options
author | Micah Halter <micah@mehalter.com> | 2023-03-25 09:01:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 21:01:39 +0800 |
commit | 36ee10057ab9a93144975449cc5e27f9b96e0af3 (patch) | |
tree | 1353cc36b5010a8682e4ad421d1710718ca82064 /runtime/lua/vim/lsp/handlers.lua | |
parent | 42876ddc7ad7d3dac3e1caf2494f402e7eb25a88 (diff) | |
download | rneovim-36ee10057ab9a93144975449cc5e27f9b96e0af3.tar.gz rneovim-36ee10057ab9a93144975449cc5e27f9b96e0af3.tar.bz2 rneovim-36ee10057ab9a93144975449cc5e27f9b96e0af3.zip |
fix(lsp): add missing silent check in lsp hover handler (#22763)
Fixup to #21531.
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index ee5b63d260..d01f8e6159 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -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) |