lang/cc: refactor (nest configs and chain packages)

Allows users to disable irony and/or rtags only, then their dependent
packages won't be loaded.
This commit is contained in:
Henrik Lissner 2018-05-16 00:16:05 +02:00
parent e7a1e0b4a2
commit 63fdc3530c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 41 additions and 42 deletions

View file

@ -5,22 +5,23 @@
(package! cuda-mode)
(package! demangle-mode)
(package! disaster)
(package! glsl-mode)
(package! irony)
(package! irony-eldoc)
(package! modern-cpp-font-lock)
(package! opencl-mode)
(when (featurep! :feature syntax-checker)
(package! flycheck-irony))
(when (package! glsl-mode)
(when (featurep! :completion company)
(package! company-glsl :recipe (:fetcher github :repo "Kaali/company-glsl"))))
(when (featurep! :completion company)
(package! company-glsl :recipe (:fetcher github :repo "Kaali/company-glsl"))
(package! company-irony)
(package! company-irony-c-headers))
(when (package! irony)
(package! irony-eldoc)
(when (featurep! :feature syntax-checker)
(package! flycheck-irony))
(when (featurep! :completion company)
(package! company-irony)
(package! company-irony-c-headers)))
(package! rtags)
(when (featurep! :completion ivy)
(package! ivy-rtags))
(when (featurep! :completion helm)
(package! helm-rtags))
(when (package! rtags)
(when (featurep! :completion ivy)
(package! ivy-rtags))
(when (featurep! :completion helm)
(package! helm-rtags)))