diff --git a/clients/lsp-ansible.el b/clients/lsp-ansible.el index 0e41f1c7b5..9632a3fe42 100644 --- a/clients/lsp-ansible.el +++ b/clients/lsp-ansible.el @@ -201,7 +201,8 @@ Python virtual environment." (defun lsp-ansible-check-ansible-minor-mode (&rest _) "Check whether ansible minor mode is active. This prevents the Ansible server from being turned on in all yaml files." - (and (derived-mode-p 'yaml-mode) + (and (or (derived-mode-p 'yaml-mode) + (derived-mode-p 'yaml-ts-mode)) ;; emacs-ansible provides ansible, not ansible-mode (with-no-warnings (bound-and-true-p ansible))))