diff --git a/modules/lang/cc/config.el b/modules/lang/cc/config.el index 9563ef452..124740fbe 100644 --- a/modules/lang/cc/config.el +++ b/modules/lang/cc/config.el @@ -163,19 +163,27 @@ compilation database is present in the project.") ;; -;; Plugins +;; Company plugins ;; -(when (featurep! :completion company) - (def-package! company-cmake :after cmake-mode) +(def-package! company-cmake + :when (featurep! :completion company) + :after cmake-mode) - (def-package! company-irony :after irony) +(def-package! company-irony + :when (featurep! :completion company) + :after irony) + +(def-package! company-irony-c-headers + :when (featurep! :completion company) + :after company-irony) + +(def-package! company-glsl + :when (featurep! :completion company) + :after glsl-mode + :config + (if (executable-find "glslangValidator") + (warn "glsl-mode: couldn't find glslangValidator, disabling company-glsl") + (set! :company-backend 'glsl-mode '(company-glsl)))) - (def-package! company-irony-c-headers :after company-irony) - (def-package! company-glsl - :after glsl-mode - :config - (if (executable-find "glslangValidator") - (warn "glsl-mode: couldn't find glslangValidator, disabling company-glsl") - (set! :company-backend 'glsl-mode '(company-glsl)))))