Skip to content

caoyang2002/zed-move-aptos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-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 --wasm

ERROR

check log

cat ~/Library/Logs/Zed/Zed.log
  1. Error: failed to install dev extension
# Mac OS:
cd ~/Library/Application\ Support/Zed/extensions

# Linux
cd ~/.local/share/zed/extensions
  1. delete /target extension.wasm /grammars
  2. restart
  3. reinstall

About

zed extension with move on aptos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published