Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit bd8685c

Browse files
committed
hover if _any_ of the connected server support it
Check that at least one of the connected server support hover.
1 parent 8c028d0 commit bd8685c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/completion/hover.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,11 @@ M.autoOpenHoverInPopup = function()
351351
M.winnr = winnr
352352
end
353353
else
354+
local has_hover = false
354355
for _, value in pairs(vim.lsp.buf_get_clients(0)) do
355-
if value.resolved_capabilities.hover == false then return end
356+
has_hover = value.resolved_capabilities.hover or has_hover
356357
end
358+
if not has_hover then return end
357359
local row, col = unpack(api.nvim_win_get_cursor(0))
358360
row = row - 1
359361
local line = api.nvim_buf_get_lines(0, row, row+1, true)[1]

0 commit comments

Comments
 (0)