Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Add Standard ML to community language extensions list (#55695)

Dzming Li3e046b4d292d
diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md
index 68542f285ac..a3b8ce32ea5 100644
--- a/docs/src/SUMMARY.md
+++ b/docs/src/SUMMARY.md
@@ -139,6 +139,7 @@
- [Scheme](./languages/scheme.md)
- [Shell Script](./languages/sh.md)
- [SQL](./languages/sql.md)
+- [Standard ML](./languages/sml.md)
- [Svelte](./languages/svelte.md)
- [Swift](./languages/swift.md)
- [Tailwind CSS](./languages/tailwindcss.md)
diff --git a/docs/src/languages.md b/docs/src/languages.md
index f1145a704b1..4b96e551ced 100644
--- a/docs/src/languages.md
+++ b/docs/src/languages.md
@@ -66,6 +66,7 @@ Some work out-of-the box and others rely on 3rd party extensions.
- [Scala](./languages/scala.md)
- [Scheme](./languages/scheme.md)
- [Shell Script](./languages/sh.md)
+- [Standard ML](./languages/sml.md)
- [Svelte](./languages/svelte.md)
- [Swift](./languages/swift.md)
- [Tailwind CSS](./languages/tailwindcss.md) \*
diff --git a/docs/src/languages/sml.md b/docs/src/languages/sml.md
new file mode 100644
index 00000000000..2077f05dc98
--- /dev/null
+++ b/docs/src/languages/sml.md
@@ -0,0 +1,28 @@
+---
+title: Standard ML
+description: "Configure Standard ML language support in Zed, including language servers, formatting, and debugging."
+---
+
+# Standard ML
+
+Standard ML support is available through the community-maintained [Standard ML extension](https://github.com/omarjatoi/zed-sml).
+
+- Tree-sitter: [MatthewFluet/tree-sitter-sml](https://github.com/MatthewFluet/tree-sitter-sml)
+- Language Server: [Millet](https://github.com/azdavis/millet)
+
+## Setup
+
+1. Install a Standard ML implementation such as [SML/NJ](https://www.smlnj.org/) or [MLton](http://mlton.org/) to compile and run your code.
+2. [Install Millet](https://github.com/azdavis/millet#install) and ensure `millet-ls` is on your `$PATH`.
+
+## Project setup
+
+For projects with more than one source file, Millet expects a single root group file. Create a `millet.toml` in the directory you open in Zed:
+
+```toml
+version = 1
+[workspace]
+root = "sources.mlb"
+```
+
+The root must be either a [ML Basis (MLB)](http://mlton.org/MLBasis) file (`.mlb`, used with MLton) or a [SML/NJ Compilation Manager (CM)](https://www.smlnj.org/doc/CM/new.pdf) file (`.cm`, used with SML/NJ). Files not transitively reachable from the root are not analyzed. See the [Millet manual](https://github.com/azdavis/millet/blob/main/docs/manual.md) for more options.