From ffe5254279869c651278f1388dd6c34a35adca45 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 23 Mar 2021 16:22:47 +0100 Subject: [PATCH] LSP: Enable doc popup, disable signature in eldoc. --- init.d/programming/lsp.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init.d/programming/lsp.el b/init.d/programming/lsp.el index e10fa2f..f2f93f9 100644 --- a/init.d/programming/lsp.el +++ b/init.d/programming/lsp.el @@ -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