lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

lsp ui docs overlap minibuffer

Open tohammer opened this issue 4 years ago • 3 comments

Hi, i am using lsp-ui together with ivy in minibuffer mode. Unfortunately the doc popup with position bottom always overlaps the minibuffer making symbol lookup barely usable.

This is how it looks: image

My lsp-ui config in case i caused this by some setting:

  (setq lsp-ui-sideline-ignore-duplicate t
        lsp-ui-sideline-show-hover nil
        lsp-ui-doc-enable t
        lsp-ui-doc-position 'bottom
        lsp-ui-doc-show-with-mouse nil
        ;; lsp-ui-doc-alignment 'frame
        lsp-ui-doc-max-height 10
        lsp-ui-doc-include-signature nil  ; don't include type signature in the child frame
        lsp-ui-sideline-show-symbol nil)  ; don't show info on the right
  (put 'lsp-ui-doc--handle-mouse-movement 'isearch-scroll t) ; unbreak isearch

My version is up-to-date melpa from today on emacs 28/master.

tohammer avatar Feb 21 '21 21:02 tohammer

I think you are setting lsp-ui-doc-position to bottom. Try to set it to something else.

  • at-point
  • top

Hope this helps! :)

jcs090218 avatar Feb 22 '21 04:02 jcs090218

Sure, that avoids the issue :) I had hoped for a way to either disable docs during minibuffer usage or always keep them hovering above minibuffer to not interfere with its content. But from your answer i assume this does not exist/is not possible(?)

tohammer avatar Feb 22 '21 14:02 tohammer

I don't think there is a built-in solution at this time. But you can do something similar to

(add-hook 'minibuffer-setup-hook (lambda () (lsp-ui-doc--hide-frame)))

You can call function lsp-ui-doc--hide-frame at the point you want to hide it. :)

jcs090218 avatar Feb 22 '21 14:02 jcs090218