From 2dbcc2caecb4dda6c83c76d5ae9fdf2b1cbfaa11 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Mon, 31 Jul 2023 19:44:31 +0200 Subject: [PATCH] Make it possible to configure lsp-ansible as `add-on?`, default to `t` (#4053) --- clients/lsp-ansible.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/clients/lsp-ansible.el b/clients/lsp-ansible.el index 1e0c10c4e5..931bf0d506 100644 --- a/clients/lsp-ansible.el +++ b/clients/lsp-ansible.el @@ -34,6 +34,15 @@ :link '(url-link "https://github.com/ansible/ansible-language-server") :package-version '(lsp-mode . "8.0.1")) +(defcustom lsp-ansible-add-on? t + "Make the client `add-on' so that it works with other language servers. +`yamlls`is a common one. + +Enabled by default." + :type 'boolean + :group 'lsp-ansible + :package-version '(lsp-mode . "8.0.1")) + (defcustom lsp-ansible-language-server-command '("ansible-language-server" "--stdio") "The command that starts the ansible language server." @@ -235,6 +244,7 @@ Pretty print the content of PARAMS." (lsp-package-path 'ansible-language-server)) ,@(cl-rest lsp-ansible-language-server-command)))) :priority 1 + :add-on? lsp-ansible-add-on? :notification-handlers (ht ("update/ansible-metadata" #'lsp-ansible-update-metadata-handler)) :activation-fn #'lsp-ansible-check-ansible-minor-mode :server-id 'ansible-ls