lsp-ui
lsp-ui copied to clipboard
lsp ui docs overlap minibuffer
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:

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.
I think you are setting lsp-ui-doc-position to bottom. Try to set it to something else.
at-pointtop
Hope this helps! :)
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(?)
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. :)