From a6f80c5bd980a63bb2c37a92a0d1c83a12f66b47 Mon Sep 17 00:00:00 2001 From: Allemand Instable <68656923+allemand-instable@users.noreply.github.com> Date: Thu, 5 Dec 2024 23:54:10 +0100 Subject: [PATCH] Fix mojo LSP configuration to conform to magic introduction (#12195) Co-authored-by: Michael Davis --- book/src/generated/lang-support.md | 2 +- languages.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 4d9c24e6f..0c3bf78e3 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 812b145ff..ae8cc7e92 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"