2017-01-06 04:13:45 +00:00
|
|
|
;;; packages.el --- Ycmd Layer packages File for Spacemacs
|
|
|
|
;;
|
2018-01-04 07:00:25 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2017-01-06 04:13:45 +00:00
|
|
|
;;
|
|
|
|
;; Author: Brian Hicks <brian@brianthicks.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
2015-04-19 03:40:24 +00:00
|
|
|
(setq ycmd-packages
|
2015-01-10 23:57:24 +00:00
|
|
|
'(
|
2017-07-03 07:52:54 +00:00
|
|
|
(company-ycmd :requires company)
|
|
|
|
(flycheck-ycmd :requires flycheck)
|
2017-01-06 04:13:45 +00:00
|
|
|
eldoc
|
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
|
|
|
|
2016-05-30 02:39:21 +00:00
|
|
|
(defun ycmd/init-company-ycmd ()
|
|
|
|
(use-package company-ycmd
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2016-05-30 02:39:21 +00:00
|
|
|
: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
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2016-05-30 02:39:21 +00:00
|
|
|
:init (add-hook 'ycmd-mode-hook 'flycheck-ycmd-setup)))
|
2015-01-10 23:57:24 +00:00
|
|
|
|
2017-01-06 04:13:45 +00:00
|
|
|
(defun ycmd/post-init-eldoc ()
|
|
|
|
(add-hook 'ycmd-mode-hook 'ycmd-eldoc-setup))
|
|
|
|
|
2015-01-10 23:57:24 +00:00
|
|
|
(defun ycmd/init-ycmd ()
|
|
|
|
(use-package ycmd
|
2018-03-04 04:37:53 +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")))
|
2017-01-06 04:13:45 +00:00
|
|
|
(setq-default ycmd-parse-conditions '(save mode-enabled)))))
|