diff --git a/layers/+lang/go/packages.el b/layers/+lang/go/packages.el index 8578b9cfd7a5..cf58b6c16ec8 100644 --- a/layers/+lang/go/packages.el +++ b/layers/+lang/go/packages.el @@ -46,7 +46,8 @@ (defun go/init-company-go () (use-package company-go :defer t - :init (spacemacs|add-company-backends + :init (when (eq go-backend 'go-mode) + spacemacs|add-company-backends :backends company-go :modes go-mode :variables company-go-show-annotation t)))