Skip to content

Commit

Permalink
Make it possible to configure lsp-ansible as add-on? t
Browse files Browse the repository at this point in the history
So that it can work with yamlls.
  • Loading branch information
mpereira committed May 14, 2023
1 parent 99ffb4c commit 9876a7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clients/lsp-ansible.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
:link '(url-link "https://github.com/ansible/ansible-language-server")
:package-version '(lsp-mode . "8.0.1"))

(defcustom lsp-ansible-add-on? nil
"Make the lsp client `add-on' so that it works with other language servers.
E.g., yamlls."
: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."
Expand Down Expand Up @@ -234,6 +241,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
Expand Down

0 comments on commit 9876a7e

Please sign in to comment.