Add ycmd-eldoc to ycmd layer
This commit is contained in:
parent
e85f03080b
commit
0dfafc7604
|
@ -13,7 +13,8 @@
|
||||||
|
|
||||||
* Description
|
* Description
|
||||||
|
|
||||||
This layer adds [[https://github.com/abingham/emacs-ycmd][emacs-ycmd]] support.
|
This layer adds [[https://github.com/abingham/emacs-ycmd][emacs-ycmd]] support, including its integrations with company,
|
||||||
|
flycheck, and eldoc.
|
||||||
|
|
||||||
* Install
|
* Install
|
||||||
** Layer
|
** Layer
|
||||||
|
|
|
@ -28,4 +28,13 @@
|
||||||
(setq-default ycmd-global-config
|
(setq-default ycmd-global-config
|
||||||
(concat (configuration-layer/get-layer-path 'ycmd)
|
(concat (configuration-layer/get-layer-path 'ycmd)
|
||||||
"global_conf.py")))
|
"global_conf.py")))
|
||||||
(setq-default ycmd-parse-conditions '(save mode-enabled)))))
|
(setq-default ycmd-parse-conditions '(save mode-enabled)))
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
(require 'ycmd-eldoc)
|
||||||
|
(add-hook 'ycmd-mode-hook 'ycmd-eldoc-setup))))
|
||||||
|
|
||||||
|
(defun ycmd/init-ycmd-eldoc ()
|
||||||
|
(use-package ycmd-eldoc
|
||||||
|
:defer t
|
||||||
|
:init (add-hook 'ycmd-mode-hook 'ycmd-eldoc-setup)))
|
||||||
|
|
Loading…
Reference in a new issue