From 2f1d3d0899543eec56b5cc05638a8d3cdb5e696a Mon Sep 17 00:00:00 2001 From: Ricardo Silva Date: Wed, 27 Jul 2022 18:28:20 +0100 Subject: [PATCH] Add LSP config for Odin (#3214) --- book/src/generated/lang-support.md | 2 +- languages.toml | 3 ++- 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" }