mirror of https://github.com/helix-editor/helix
Update languages.toml for Mojo (#13648)
parent
05a4d05646
commit
705d467932
|
@ -150,7 +150,7 @@
|
||||||
| mermaid | ✓ | | | |
|
| mermaid | ✓ | | | |
|
||||||
| meson | ✓ | | ✓ | `mesonlsp` |
|
| meson | ✓ | | ✓ | `mesonlsp` |
|
||||||
| mint | | | | `mint` |
|
| mint | | | | `mint` |
|
||||||
| mojo | ✓ | ✓ | ✓ | `magic` |
|
| mojo | ✓ | ✓ | ✓ | `pixi` |
|
||||||
| move | ✓ | | | |
|
| move | ✓ | | | |
|
||||||
| msbuild | ✓ | | ✓ | |
|
| msbuild | ✓ | | ✓ | |
|
||||||
| nasm | ✓ | ✓ | | `asm-lsp` |
|
| nasm | ✓ | ✓ | | `asm-lsp` |
|
||||||
|
|
|
@ -71,7 +71,7 @@ marksman = { command = "marksman", args = ["server"] }
|
||||||
metals = { command = "metals", config = { "isHttpEnabled" = true, metals = { inlayHints = { typeParameters = {enable = true} , hintsInPatternMatch = {enable = true} } } } }
|
metals = { command = "metals", config = { "isHttpEnabled" = true, metals = { inlayHints = { typeParameters = {enable = true} , hintsInPatternMatch = {enable = true} } } } }
|
||||||
mesonlsp = { command = "mesonlsp", args = ["--lsp"] }
|
mesonlsp = { command = "mesonlsp", args = ["--lsp"] }
|
||||||
mint = { command = "mint", args = ["tool", "ls"] }
|
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" }
|
nil = { command = "nil" }
|
||||||
nimlangserver = { command = "nimlangserver" }
|
nimlangserver = { command = "nimlangserver" }
|
||||||
nimlsp = { command = "nimlsp" }
|
nimlsp = { command = "nimlsp" }
|
||||||
|
@ -452,14 +452,14 @@ indent = { tab-width = 2, unit = " " }
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "mojo"
|
name = "mojo"
|
||||||
scope = "source.mojo"
|
scope = "source.mojo"
|
||||||
roots = ["__init__.mojo"]
|
roots = ["pixi.toml", "pixi.lock"]
|
||||||
injection-regex = "mojo"
|
injection-regex = "mojo"
|
||||||
file-types = ["mojo", "🔥"]
|
file-types = ["mojo", "🔥"]
|
||||||
language-servers = [ "mojo-lsp" ]
|
language-servers = [ "mojo-lsp-server" ]
|
||||||
comment-token = "#"
|
comment-token = "#"
|
||||||
indent = { tab-width = 4, unit = " " }
|
indent = { tab-width = 4, unit = " " }
|
||||||
auto-format = true
|
auto-format = true
|
||||||
formatter = { command = "magic", args = ["run", "mojo" , "format", "-q", "-"]}
|
formatter = { command = "pixi", args = ["run", "mojo" , "format", "-q", "-"]}
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "mojo"
|
name = "mojo"
|
||||||
|
|
Loading…
Reference in New Issue