Update languages.toml for Mojo (#13648)

diagnostic-severity-glyphs
Samuel Ibarra 2025-06-10 09:43:00 -05:00 committed by GitHub
parent 05a4d05646
commit 705d467932
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -150,7 +150,7 @@
| mermaid | ✓ | | | |
| meson | ✓ | | ✓ | `mesonlsp` |
| mint | | | | `mint` |
| mojo | ✓ | ✓ | ✓ | `magic` |
| mojo | ✓ | ✓ | ✓ | `pixi` |
| move | ✓ | | | |
| msbuild | ✓ | | ✓ | |
| nasm | ✓ | ✓ | | `asm-lsp` |

View File

@ -71,7 +71,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 = ["tool", "ls"] }
mojo-lsp = { command = "magic", args = ["run", "mojo-lsp-server"] }
mojo-lsp-server = { command = "pixi", args = ["run", "mojo-lsp-server"] }
nil = { command = "nil" }
nimlangserver = { command = "nimlangserver" }
nimlsp = { command = "nimlsp" }
@ -452,14 +452,14 @@ indent = { tab-width = 2, unit = " " }
[[language]]
name = "mojo"
scope = "source.mojo"
roots = ["__init__.mojo"]
roots = ["pixi.toml", "pixi.lock"]
injection-regex = "mojo"
file-types = ["mojo", "🔥"]
language-servers = [ "mojo-lsp" ]
language-servers = [ "mojo-lsp-server" ]
comment-token = "#"
indent = { tab-width = 4, unit = " " }
auto-format = true
formatter = { command = "magic", args = ["run", "mojo" , "format", "-q", "-"]}
formatter = { command = "pixi", args = ["run", "mojo" , "format", "-q", "-"]}
[[grammar]]
name = "mojo"