-
-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to open hyperlinks with lsp-describe-thing-at-point #3041
Comments
*bump* Just chiming in about this annoying issue, reported almost a year ago. Following code from Lines 5022 to 5024 in 5a62d4a
For example external link rendered for regexp.MustCompile on pkg.go.dev is assembled this way:
As already mentioned about related issue from |
For anybody interested, share here simple work around this problem. (add-hook 'help-mode-hook
(lambda ()
(when (string= (buffer-name (current-buffer)) "*lsp-help*")
(local-set-key [?\r] 'lsp-ui-doc--open-markdown-link)
(define-key help-mode-map
[remap markdown-follow-thing-at-point] 'lsp-ui-doc--open-markdown-link)))) This is not a solution but a quick fix, albeit does the job in my case. |
When looking at a documentation buffer after calling
M-x lsp-describe-thing-at-point
, it would be nice to be able to open hyperlinks in those docs. It seems likeM-x lsp-ui-doc--open-markdown-link
sort of works. It would be great if that worked by just simply pressingRET
(or mouse-click).See the relevant
lsp-ui
issue where this was fixed there: emacs-lsp/lsp-ui#452Here's the commit where @sebastiencs fixed this issue in
lsp-ui
: emacs-lsp/lsp-ui@79ba8b2EDIT: I removed the comment about respecting my preferred browser. That was my local xdg-mime settings being wrong for
file
uris.The text was updated successfully, but these errors were encountered: