Skip to content

Commit 3cd7cc6

Browse files
authored
use lsp-feature? to check for hover capability instead of lsp--capability (#734)
1 parent d8cce7d commit 3cd7cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-ui-doc.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ HEIGHT is the documentation number of lines."
930930
(when (and lsp-ui-doc-show-with-cursor
931931
(not (memq this-command lsp-ui-doc--ignore-commands))
932932
(not (bound-and-true-p lsp-ui-peek-mode))
933-
(lsp--capability "hoverProvider"))
933+
(lsp-feature? "textDocument/hover"))
934934
(-if-let (bounds (or (and (symbol-at-point) (bounds-of-thing-at-point 'symbol))
935935
(and (looking-at "[[:graph:]]") (cons (point) (1+ (point))))))
936936
(unless (and (equal lsp-ui-doc--bounds bounds) (not lsp-ui-doc--hide-on-next-command))

0 commit comments

Comments
 (0)