zed-move-aptos
Extension for Zed that adds Move on Aptos syntax highlighting
TIP
Sorry, this extension only implements syntax highlighting and does not implement code completion, as there are no open-source solutions available for Aptos Move code completion.
Sorry again.
zed plugin
https://github.com/caoyang2002/zed-move-aptos
tree sitter
https://github.com/caoyang2002/tree-sitter-move-aptos
Other
I used the code for the following project
I am very grateful to the code and developers of the following projects, as they have helped me identify a multitude of issues.
zed plugin (sui)
https://github.com/Tzal3x/move-zed-extension (sui move)
tree-sitter-move (sui)
https://github.com/tzakian/tree-sitter-move
Docs
zed: https://zed.dev/docs/extensions/languages#bracket-matching
tree sitter: https://tree-sitter.github.io/tree-sitter/playground#about
Unusable
[!NOTE] Due to the fact that
https://github.com/aptos-labs/tree-sitter-move-on-aptoscannot be directly compiled intowasmin Zed, it is not recommended for use. Please switch to:https://github.com/tzakian/tree-sitter-move(sui) orhttps://github.com/caoyang2002/tree-sitter-move-aptos(aptos).https://github.com/aptos-labs/tree-sitter-move-on-aptos
# first time tree-sitter init-config # pnpm install pnpm run format tree-sitter generate tree-sitter build --wasm
ERROR
check log
cat ~/Library/Logs/Zed/Zed.logError: failed to install dev extension
# Mac OS:
cd ~/Library/Application\ Support/Zed/extensions
# Linux
cd ~/.local/share/zed/extensions- delete
/targetextension.wasm/grammars - restart
- reinstall