Skip to content
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

Allow lsp UI doc hide from focused frame #729

Merged
merged 2 commits into from
Aug 22, 2022

Conversation

Lenbok
Copy link
Contributor

@Lenbok Lenbok commented Aug 8, 2022

Previously, calling lsp-ui-doc-hide-frame would not hide the frame when the user focus was inside the frame.

Now in your use-package you can have something like:

  :bind (:map lsp-ui-doc-frame-mode-map
              ("q" . 'lsp-ui-doc-hide)
              ("u" . 'lsp-ui-doc-unfocus-frame))

This is regardless of whether the doc frame was instigated by lsp-ui-doc-show, lsp-ui-doc-glance, or cursor/mouse hover.

Fixes #726

@kiennq

Lenbok added 2 commits August 9, 2022 09:21
Ensure focus is out of doc frame before attempting to hide the frame.
Be explicit that focusing into the doc frame will cancel
"glance" dismissal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lsp-ui-doc frame is not hidden after the doc frame is unfocused
2 participants