From 69f25a85da61673338da721c5d4fbecc3439f703 Mon Sep 17 00:00:00 2001 From: Bang Lee Date: Thu, 27 Feb 2025 07:30:55 +0800 Subject: [PATCH] Update languages.toml to add astro-ls (#12939) --- book/src/generated/lang-support.md | 2 +- languages.toml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 5688a39cd..4dd49ec3b 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -4,7 +4,7 @@ | adl | ✓ | ✓ | ✓ | | | agda | ✓ | | | | | amber | ✓ | | | | -| astro | ✓ | | | | +| astro | ✓ | | | `astro-ls` | | awk | ✓ | ✓ | | `awk-language-server` | | bash | ✓ | ✓ | ✓ | `bash-language-server` | | bass | ✓ | | | `bass` | diff --git a/languages.toml b/languages.toml index 259951d99..8ccab5eaf 100644 --- a/languages.toml +++ b/languages.toml @@ -139,6 +139,11 @@ wasm-language-tools = { command = "wat_server" } command = "ansible-language-server" args = ["--stdio"] +[language-server.astro-ls] +command = "astro-ls" +args = [ "--stdio" ] +config = { typescript = { tsdk = "node_modules/typescript/lib" } } + [language-server.lua-language-server] command = "lua-language-server" @@ -2632,6 +2637,7 @@ injection-regex = "astro" file-types = ["astro"] block-comment-tokens = { start = "" } indent = { tab-width = 2, unit = " " } +language-servers = [ "astro-ls" ] [[grammar]] name = "astro"