Extension for Zed that adds Move on Aptos syntax highlighting
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.
https://github.com/caoyang2002/zed-move-aptos
https://github.com/caoyang2002/tree-sitter-move-aptos
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.
https://github.com/Tzal3x/move-zed-extension (sui move)
https://github.com/tzakian/tree-sitter-move
zed: https://zed.dev/docs/extensions/languages#bracket-matching
tree sitter: https://tree-sitter.github.io/tree-sitter/playground#about
Note
Due to the fact that https://github.com/aptos-labs/tree-sitter-move-on-aptos cannot be directly compiled into wasm in Zed, it is not recommended for use. Please switch to: https://github.com/tzakian/tree-sitter-move (sui) or https://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 --wasmcheck 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