|
|
@@ -1509,4 +1509,22 @@ export namespace LSPServer {
|
|
|
}
|
|
|
},
|
|
|
}
|
|
|
+
|
|
|
+ export const Gleam: Info = {
|
|
|
+ id: "gleam",
|
|
|
+ extensions: [".gleam"],
|
|
|
+ root: NearestRoot(["gleam.toml"]),
|
|
|
+ async spawn(root) {
|
|
|
+ const gleam = Bun.which("gleam")
|
|
|
+ if (!gleam) {
|
|
|
+ log.info("gleam not found, please install gleam first")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ process: spawn(gleam, ["lsp"], {
|
|
|
+ cwd: root,
|
|
|
+ }),
|
|
|
+ }
|
|
|
+ },
|
|
|
+ }
|
|
|
}
|