Skip to content

Commit

Permalink
Use the proper check for "textDocument/hover" support
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoncho committed May 14, 2024
1 parent 9e36009 commit 62e1f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -5257,7 +5257,7 @@ If EXCLUDE-DECLARATION is non-nil, request the server to include declarations."
lsp--eldoc-saved-message nil)
(if (looking-at-p "[[:space:]\n]")
(setq lsp--eldoc-saved-message nil) ; And returns nil.
(when (and lsp-eldoc-enable-hover (lsp--capability :hoverProvider))
(when (and lsp-eldoc-enable-hover (lsp-feature? "textDocument/hover"))
(lsp-request-async
"textDocument/hover"
(lsp--text-document-position-params)
Expand Down

0 comments on commit 62e1f68

Please sign in to comment.