Unnamed repository; edit this file 'description' to name the repository.
Fix mojo LSP configuration to conform to magic introduction (#12195)
Co-authored-by: Michael Davis <[email protected]>
Allemand Instable 2024-12-06
parent cd1f6e8 · commit a6f80c5
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--languages.toml4
2 files changed, 3 insertions, 3 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 4d9c24e6..0c3bf78e 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -134,7 +134,7 @@
| mermaid | ✓ | | | |
| meson | ✓ | | ✓ | `mesonlsp` |
| mint | | | | `mint` |
-| mojo | ✓ | ✓ | ✓ | `mojo-lsp-server` |
+| mojo | ✓ | ✓ | ✓ | `magic` |
| move | ✓ | | | |
| msbuild | ✓ | | ✓ | |
| nasm | ✓ | ✓ | | |
diff --git a/languages.toml b/languages.toml
index 812b145f..ae8cc7e9 100644
--- a/languages.toml
+++ b/languages.toml
@@ -62,7 +62,7 @@ marksman = { command = "marksman", args = ["server"] }
metals = { command = "metals", config = { "isHttpEnabled" = true, metals = { inlayHints = { typeParameters = {enable = true} , hintsInPatternMatch = {enable = true} } } } }
mesonlsp = { command = "mesonlsp", args = ["--lsp"] }
mint = { command = "mint", args = ["ls"] }
-mojo-lsp = { command = "mojo-lsp-server" }
+mojo-lsp = { command = "magic", args = ["run", "mojo-lsp-server"] }
nil = { command = "nil" }
nimlangserver = { command = "nimlangserver" }
nimlsp = { command = "nimlsp" }
@@ -412,7 +412,7 @@ language-servers = [ "mojo-lsp" ]
comment-token = "#"
indent = { tab-width = 4, unit = " " }
auto-format = true
-formatter = { command = "mojo", args = ["format", "-q", "-"]}
+formatter = { command = "magic", args = ["run", "mojo" , "format", "-q", "-"]}
[[grammar]]
name = "mojo"