Refine eldoc settings for lsp.

This commit is contained in:
tastytea 2019-10-11 13:09:17 +02:00
parent 5f0c80c4d5
commit a13b44ae9a
1 changed files with 7 additions and 3 deletions

10
init.el
View File

@ -1,8 +1,9 @@
;;; init.el --- tastytea's Emacs init file. ;;; 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: ;;; 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: ;;; Code:
;;;;;;;;;;;;;;;;;;;; Packages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;; Packages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -462,6 +463,7 @@ With argument, do this that many times."
(lsp-prefer-flymake nil) ; Disable flymake. (lsp-prefer-flymake nil) ; Disable flymake.
(lsp-auto-guess-root t) ; Don't ask for project root. (lsp-auto-guess-root t) ; Don't ask for project root.
(lsp-clients-clangd-args '("-compile-commands-dir=build")) (lsp-clients-clangd-args '("-compile-commands-dir=build"))
(lsp-eldoc-render-all t) ; Display all eldoc information.
:hook :hook
(c++-mode . lsp) (c++-mode . lsp)
(c-mode . lsp) (c-mode . lsp)
@ -471,7 +473,9 @@ With argument, do this that many times."
(use-package lsp-ui (use-package lsp-ui
:after (lsp-mode flycheck) :after (lsp-mode flycheck)
:custom :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 :bind
(:map lsp-ui-mode-map (:map lsp-ui-mode-map
("M-." . lsp-ui-peek-find-definitions)) ("M-." . lsp-ui-peek-find-definitions))