https://github.com/omarjatoi/zed-sml
Standard ML language support extension for the Zed text editor.
https://github.com/omarjatoi/zed-sml
sml standard-ml zed zed-editor zed-extension
Last synced: 6 months ago
JSON representation
Standard ML language support extension for the Zed text editor.
- Host: GitHub
- URL: https://github.com/omarjatoi/zed-sml
- Owner: omarjatoi
- License: apache-2.0
- Created: 2024-08-31T14:08:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-28T16:57:25.000Z (11 months ago)
- Last Synced: 2025-04-09T19:58:53.842Z (6 months ago)
- Topics: sml, standard-ml, zed, zed-editor, zed-extension
- Language: Scheme
- Homepage:
- Size: 27.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zed SML Extension
This extension adds Standard ML language support to the [Zed](https://zed.dev) text editor.
- Tree Sitter: [tree-sitter-sml](https://github.com/MatthewFluet/tree-sitter-sml)
- Language Server: [millet](https://github.com/azdavis/millet)## Known Issues
There are currently a few known issues, primarily with the language server integration in this extension:
- Formatting with millet does not currently work (see below to use `smlfmt` as an external formatter configured in Zed)
- Project diagnostics do not auto resolveYou can disable the language server by configuring Zed:
```json
{
"languages": {
"Standard ML": {
"enable_language_server": false
}
}
}
```You can also configure Zed to use [`smlfmt`](https://github.com/shwestrick/smlfmt) to format your buffer when you save. Install `smlfmt` and make sure it's accessible in your path, and add the following configuration:
```json
{
"languages": {
"Standard ML": {
"enable_language_server": false,
"formatter": {
"external": {
"command": "smlfmt"
}
}
}
}
```## License
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.### Dependency Licenses
- `tree-sitter-sml` licensed under [MIT](https://github.com/MatthewFluet/tree-sitter-sml/blob/main/LICENSE)
- `millet` lincesed under either [MIT or Apache](https://github.com/azdavis/millet#license)