From 4352b52d8be4c8e944c7d5eb4dbda91475fd94c6 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 8 Oct 2023 22:36:53 +0200 Subject: [PATCH] feat: add graphql-lsp support graphql-lsp has quite the strange name upstream, the project is technically called graphql-language-service, but the binary shipped is called graphql-lsp hence the strange naming scheme Signed-off-by: kjuulh --- book/src/generated/lang-support.md | 2 +- languages.toml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 1287c11ff8e35..c3086b45e290a 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -57,7 +57,7 @@ | gomod | ✓ | | | `gopls` | | gotmpl | ✓ | | | `gopls` | | gowork | ✓ | | | `gopls` | -| graphql | ✓ | | | | +| graphql | ✓ | | | `graphl-lsp` | | hare | ✓ | | | | | haskell | ✓ | ✓ | | `haskell-language-server-wrapper` | | haskell-persistent | ✓ | | | | diff --git a/languages.toml b/languages.toml index ca8e68154388d..8fe5348e70896 100644 --- a/languages.toml +++ b/languages.toml @@ -1395,8 +1395,13 @@ scope = "source.graphql" injection-regex = "graphql" file-types = ["gql", "graphql", "graphqls"] roots = [] +language-servers = [ "graphql-language-service" ] indent = { tab-width = 2, unit = " " } +[language-server.graphql-language-service] +command = "graphql-lsp" +args = ["server", "-m", "stream"] + [[grammar]] name = "graphql" source = { git = "https://github.com/bkegley/tree-sitter-graphql", rev = "5e66e961eee421786bdda8495ed1db045e06b5fe" }