Skip to content

Commit

Permalink
Add default language server for JSON (#2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Else authored Apr 8, 2022
1 parent b5efb9d commit 22629ca
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -27,7 +27,7 @@
| iex || | | |
| java || | | |
| javascript || || `typescript-language-server` |
| json || || |
| json || || `vscode-json-language-server` |
| jsx || || `typescript-language-server` |
| julia || | | `julia` |
| kotlin || | | `kotlin-language-server` |
Expand Down
3 changes: 3 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ scope = "source.json"
injection-regex = "json"
file-types = ["json"]
roots = []
language-server = { command = "vscode-json-language-server", args = ["--stdio"] }
auto-format = true
config = { "provideFormatter" = true }
indent = { tab-width = 2, unit = " " }

[[grammar]]
Expand Down

0 comments on commit 22629ca

Please sign in to comment.