https://github.com/bajrangcoder/zed-mojo
Mojo support for Zed
https://github.com/bajrangcoder/zed-mojo
extension mojo zed
Last synced: 7 months ago
JSON representation
Mojo support for Zed
- Host: GitHub
- URL: https://github.com/bajrangcoder/zed-mojo
- Owner: bajrangCoder
- Created: 2024-08-26T10:43:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-15T12:20:08.000Z (9 months ago)
- Last Synced: 2025-01-15T13:10:37.151Z (9 months ago)
- Topics: extension, mojo, zed
- Language: Scheme
- Homepage:
- Size: 7.81 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Zed Mojo
A Zed extension to provide Mojo language support with syntax highlighting and LSP integration.
## Features
- Syntax highlighting via tree-sitter
- Language Server Protocol (LSP) support## Installation
1. Install the [Magic Package Manager](https://developer.modular.com/download)
2. Clone this repository
3. Open Zed and click "Install Dev Extension" from the extensions page
4. Select the cloned repository## Configuration
### LSP Settings
Configure the Language Server Protocol in your Zed settings:
```json
{
"lsp": {
"mojo": {
"settings": {
"lsp_path": "/name/my-proj/.magic/envs/default/bin/mojo-lsp-server", // path to mojo-lsp-server
"args": ["--log=verbose"] // additional args
}
}
},
}
```### Formatter Settings
Enable formatting by adding following in zed setting :
```json
{
"languages": {
"mojo": {
"formatter": {
"external": {
"command": "magic",
"arguments": ["run", "mojo", "format", "-q", "-"]
}
}
}
}
}
```## Grammar
The extension uses [tree-sitter-mojo](https://github.com/lsh/tree-sitter-mojo/) for syntax highlighting.
## Contributing
Feedback and contributions are welcome! Please share your suggestions to help improve this extension.
> [!NOTE]
> The [Magic](https://docs.modular.com/magic/) Package Manager is required for the LSP functionality to work properly.> [!WARNING]
> This extension is not published to zed extension store, as it isn't stable and isn't completed yet.