Skip to content

Commit

Permalink
feat: add graphql-lsp support
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kjuulh committed Oct 8, 2023
1 parent c9694f6 commit 4352b52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
| gomod || | | `gopls` |
| gotmpl || | | `gopls` |
| gowork || | | `gopls` |
| graphql || | | |
| graphql || | | `graphl-lsp` |
| hare || | | |
| haskell ||| | `haskell-language-server-wrapper` |
| haskell-persistent || | | |
Expand Down
5 changes: 5 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit 4352b52

Please sign in to comment.