Motoko
Motoko and Candid support. Visit the repository for more information.
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Motoko. The extension's id is motoko.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Motoko and Candid Language Support for Zed
Motoko and Candid language support for Zed, allowing you to develop applications easily for Internet Computer.
- Tree-sitter for Motoko: christoph-dfinity/tree-sitter-motoko
- Tree-sitter for Candid: perforate-org/tree-sitter-candid
- Language Server for Motoko: A part of caffeinelabs/vscode-motoko
Prerequisites
For certain tasks:
Configuring
Formatter
The Motoko formatter is based on Prettier, and you can configure it for each project using .prettierrc.
For detailed configuration instructions, please refer to caffeinelabs/prettier-plugin-motoko.
Additionally, you can disable the formatter using Zed's settings:
{
"lsp": {
"motoko-language-server": {
"initialization_options": {
"formatter": "none" // "prettier" by default
}
}
}
}
Development
To develop this extension, see the Developing Extensions section of the Zed docs.
To contribute to this extension:
- Clone the repository
- Make your changes
- Test with Zed
- Submit a pull request
License
This project is licensed under either of Apache License, Version 2.0 or MIT License at your option.