From a13b44ae9aa8c286a7f387d0148bac2b4d92c083 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 11 Oct 2019 13:09:17 +0200 Subject: [PATCH] Refine eldoc settings for lsp. --- init.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 8d445c7..3d88f5d 100644 --- a/init.el +++ b/init.el @@ -1,8 +1,9 @@ ;;; init.el --- tastytea's Emacs init file. -;; Time-stamp: <2019-10-09T18:49:48+00:00> +;; Time-stamp: <2019-10-11T11:08:40+00:00> ;;; Commentary: -;; Requires at least Emacs 24.3. +;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and +;; above though. ;;; Code: ;;;;;;;;;;;;;;;;;;;; Packages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -462,6 +463,7 @@ With argument, do this that many times." (lsp-prefer-flymake nil) ; Disable flymake. (lsp-auto-guess-root t) ; Don't ask for project root. (lsp-clients-clangd-args '("-compile-commands-dir=build")) + (lsp-eldoc-render-all t) ; Display all eldoc information. :hook (c++-mode . lsp) (c-mode . lsp) @@ -471,7 +473,9 @@ With argument, do this that many times." (use-package lsp-ui :after (lsp-mode flycheck) :custom - (lsp-ui-sideline-enable nil) + (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. :bind (:map lsp-ui-mode-map ("M-." . lsp-ui-peek-find-definitions))