Skip to content

Commit

Permalink
Make it possible to configure lsp-ansible as add-on?, default to t
Browse files Browse the repository at this point in the history
So that it can work with yamlls.
  • Loading branch information
mpereira committed Jul 31, 2023
1 parent 1d60519 commit 47d79d9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions clients/lsp-ansible.el
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47d79d9

Please sign in to comment.