Skip to content

Commit d1b1713

Browse files
wyuenhoMaskRay
authored andcommitted
Don't request hover when server cannot handle textDocument/hover (#142)
1 parent 7599139 commit d1b1713

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-ui-doc.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ We don't extract the string that `lps-line' is already displaying."
275275
(defun lsp-ui-doc--make-request ()
276276
"Request the documentation to the LS."
277277
(when (and (bound-and-true-p lsp--cur-workspace)
278-
(not (bound-and-true-p lsp-ui-peek-mode)))
278+
(not (bound-and-true-p lsp-ui-peek-mode))
279+
(lsp--capability "hoverProvider"))
279280
(if (symbol-at-point)
280281
(let ((bounds (bounds-of-thing-at-point 'symbol)))
281282
(unless (equal lsp-ui-doc--bounds bounds)

0 commit comments

Comments
 (0)