aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Silva2022-07-27 17:28:20 +0000
committerGitHub2022-07-27 17:28:20 +0000
commit2f1d3d0899543eec56b5cc05638a8d3cdb5e696a (patch)
treef0540d08310820400a014cf8df3933aa14d681bf
parent9a496237215dc09ef8f639fc79f7e63e2309c080 (diff)
Add LSP config for Odin (#3214)
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--languages.toml3
2 files changed, 3 insertions, 2 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 6b938def..4e8d82ec 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -67,7 +67,7 @@
| nu | ✓ | | | |
| ocaml | ✓ | | ✓ | `ocamllsp` |
| ocaml-interface | ✓ | | | `ocamllsp` |
-| odin | ✓ | | | |
+| odin | ✓ | | | `ols` |
| openscad | ✓ | | | `openscad-language-server` |
| org | ✓ | | | |
| perl | ✓ | ✓ | ✓ | |
diff --git a/languages.toml b/languages.toml
index b42f9cfd..67e607df 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1368,7 +1368,8 @@ name = "odin"
auto-format = false
scope = "source.odin"
file-types = ["odin"]
-roots = []
+roots = ["ols.json"]
+language-server = { command = "ols", args = [] }
comment-token = "//"
indent = { tab-width = 4, unit = "\t" }