2015-04-19 03:40:24 +00:00
|
|
|
(setq ycmd-packages
|
2015-01-10 23:57:24 +00:00
|
|
|
'(
|
2016-05-30 02:39:21 +00:00
|
|
|
(company-ycmd :toggle (configuration-layer/package-usedp 'company))
|
|
|
|
(flycheck-ycmd :toggle (configuration-layer/package-usedp 'flycheck))
|
2015-04-01 02:24:01 +00:00
|
|
|
ycmd
|
2015-04-19 03:40:24 +00:00
|
|
|
))
|
2015-01-10 23:57:24 +00:00
|
|
|
|
|
|
|
(unless (boundp 'ycmd-server-command)
|
2015-04-01 02:24:01 +00:00
|
|
|
(message (concat "YCMD won't work unless you set the ycmd-server-command "
|
|
|
|
"variable to the path to a ycmd install.")))
|
2015-01-10 23:57:24 +00:00
|
|
|
|
2016-05-30 02:39:21 +00:00
|
|
|
(defun ycmd/init-company-ycmd ()
|
|
|
|
(use-package company-ycmd
|
|
|
|
:defer t
|
|
|
|
:commands company-ycmd))
|
2015-04-01 02:24:01 +00:00
|
|
|
|
2016-05-30 02:39:21 +00:00
|
|
|
(defun ycmd/init-flycheck-ycmd ()
|
|
|
|
(use-package flycheck-ycmd
|
|
|
|
:defer t
|
|
|
|
:init (add-hook 'ycmd-mode-hook 'flycheck-ycmd-setup)))
|
2015-01-10 23:57:24 +00:00
|
|
|
|
|
|
|
(defun ycmd/init-ycmd ()
|
|
|
|
(use-package ycmd
|
2015-03-16 01:43:31 +00:00
|
|
|
:defer t
|
2015-01-10 23:57:24 +00:00
|
|
|
:init
|
2016-10-06 11:57:20 +00:00
|
|
|
(progn
|
|
|
|
(unless (boundp 'ycmd-global-config)
|
|
|
|
(setq-default ycmd-global-config
|
|
|
|
(concat (configuration-layer/get-layer-path 'ycmd)
|
|
|
|
"global_conf.py")))
|
|
|
|
(setq-default ycmd-parse-conditions '(save mode-enabled)))))
|