LSP: Enable doc popup, disable signature in eldoc.

This commit is contained in:
tastytea 2021-03-23 16:22:47 +01:00
parent 0b2f9709b9
commit ffe5254279
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 6 additions and 4 deletions

View File

@ -15,7 +15,7 @@
:diminish lsp-mode
:custom ((lsp-prefer-flymake nil) ; Disable flymake.
(lsp-auto-guess-root t) ; Don't ask for project root.
(lsp-eldoc-render-all t)
(lsp-eldoc-render-all nil)
(lsp-restart 'auto-restart)
(lsp-enable-semantic-highlighting t) ; Needs clangd 11(?).
(lsp-semantic-tokens-apply-modifiers t)
@ -59,9 +59,11 @@
(use-package lsp-ui
:after (lsp-mode flycheck whitespace)
:functions (my/whitespace-mode-on my/whitespace-mode-off)
:custom ((lsp-ui-sideline-enable nil) ; Do not insert doc into buffer.
(lsp-ui-doc-include-signature t) ; Include signature in doc popup.
(lsp-ui-doc-enable nil)) ; Disable doc popup.
:custom ((lsp-ui-sideline-enable nil) ; Documentation in buffer.
(lsp-ui-doc-include-signature t)
(lsp-ui-doc-max-width 100)
(lsp-ui-doc-max-height 20)
(lsp-ui-doc-enable t)) ; Documentation popup.
:config (defun my/lsp-ws-toggle ()
"Works around the dots-in-wrong-color bug."
(if lsp-ui-peek-mode