From bdf7937a599058daa168fa24b0f52c06d4259cf7 Mon Sep 17 00:00:00 2001 From: Laurent Wandrebeck Date: Sun, 8 Oct 2023 12:34:21 +0200 Subject: [PATCH] Add ansible-language-server for yaml (#7973) * Update languages.toml Add ansible support to yaml. * cargo xtask docgen --- book/src/generated/lang-support.md | 2 +- languages.toml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 378c6730e0ce..a2c4ba97fda0 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -179,6 +179,6 @@ | wren | ✓ | ✓ | ✓ | | | xit | ✓ | | | | | xml | ✓ | | ✓ | | -| yaml | ✓ | | ✓ | `yaml-language-server` | +| yaml | ✓ | | ✓ | `yaml-language-server`, `ansible-language-server` | | yuck | ✓ | | | | | zig | ✓ | ✓ | ✓ | `zls` | diff --git a/languages.toml b/languages.toml index 6eab0421ca92..257d90afecd1 100644 --- a/languages.toml +++ b/languages.toml @@ -87,6 +87,9 @@ yaml-language-server = { command = "yaml-language-server", args = ["--stdio"] } zls = { command = "zls" } blueprint-compiler = { command = "blueprint-compiler", args = ["lsp"] } +[language-server.ansible-language-server] +command = "ansible-language-server" +args = ["--stdio"] [language-server.lua-language-server] command = "lua-language-server" @@ -1071,7 +1074,7 @@ file-types = ["yml", "yaml"] roots = [] comment-token = "#" indent = { tab-width = 2, unit = " " } -language-servers = [ "yaml-language-server" ] +language-servers = [ "yaml-language-server", "ansible-language-server" ] injection-regex = "yml|yaml" [[grammar]]