emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.04k stars 139 forks source link

How can I disable the use of minibuffer in lsp-ui? #438

Closed ghost closed 4 years ago

ghost commented 4 years ago

When lsp-ui-doc offers me information about the symbol at point, it does that in a hover window/child frame (good) and in the minibuffer (bad).

I've found no mention of the minibuffer in the customisations of lsp-*

Can you please tell me where/how to disable the use of the minibuffer in lsp-ui?

yyoncho commented 4 years ago

Can you please post a screenshot to avoid guesswork?

ghost commented 4 years ago

Sorry, sure:

ghost commented 4 years ago

image

yyoncho commented 4 years ago

set lsp-eldoc-hook to nil

ghost commented 4 years ago

Aaah, perfect, thanks! Is that mentioned in the docs somewhere? If not, should it? And if it should: where can I put it?

dschrempf commented 2 years ago

FYI: I also just looked for this option. It may be good to define a variable containing minibuffer or message-area or something searchable controlling this behavior.

luveti commented 2 years ago

For others finding themselves here. lsp-eldoc-hook was deprecated in version 8.0.0. The proper way to disable this now is the following:

(setq lsp-eldoc-enable-hover nil)

I had to reopen my buffers after changing this. More info on how to disable things can be found here:

https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/