This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/ycmd/packages.el

43 lines
1.1 KiB
EmacsLisp
Raw Normal View History

;;; packages.el --- Ycmd Layer packages File for Spacemacs
;;
2018-01-04 07:00:25 +00:00
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Brian Hicks <brian@brianthicks.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(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)
eldoc
2015-04-01 02:24:01 +00:00
ycmd
))
2015-01-10 23:57:24 +00:00
(defun ycmd/init-company-ycmd ()
(use-package company-ycmd
:defer t
:commands company-ycmd))
2015-04-01 02:24:01 +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/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
:defer t
2015-01-10 23:57:24 +00:00
:init
(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)))))