diff --git a/modules/tools/ansible/config.el b/modules/tools/ansible/config.el index 0e425be03..efef20a50 100644 --- a/modules/tools/ansible/config.el +++ b/modules/tools/ansible/config.el @@ -7,6 +7,8 @@ :config (setq ansible-section-face 'font-lock-variable-name-face ansible-task-label-face 'font-lock-doc-face) + (when (featurep! :completion company) + (set-company-backend! 'ansible 'company-ansible)) (map! :map ansible-key-map :localleader :desc "Decrypt buffer" "d" #'ansible-decrypt-buffer diff --git a/modules/tools/ansible/doctor.el b/modules/tools/ansible/doctor.el new file mode 100644 index 000000000..343875d14 --- /dev/null +++ b/modules/tools/ansible/doctor.el @@ -0,0 +1,5 @@ +;; -*- lexical-binding: t; no-byte-compile: t; -*- +;;; tools/ansible/doctor.el + +(unless (executable-find "ansible") + (warn! "Couldn't find ansible executable. Some features of the ansible module won't work"))