From 5b8d8aed5171af5b9acda05fcb63c60cbef0a111 Mon Sep 17 00:00:00 2001 From: Ralf Beckmann Date: Mon, 4 Jan 2021 18:33:45 +0100 Subject: [PATCH 1/2] Enable company-ansible upfront --- modules/tools/ansible/config.el | 2 ++ 1 file changed, 2 insertions(+) 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 From db82474a58d6b5f0430051b174ea56da2018dc94 Mon Sep 17 00:00:00 2001 From: Ralf Beckmann Date: Mon, 4 Jan 2021 18:34:24 +0100 Subject: [PATCH 2/2] Add doctor.el for :tools ansible --- modules/tools/ansible/doctor.el | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 modules/tools/ansible/doctor.el 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"))