GDScript
Godot GDScript language support in Zed is provided by the community-maintained GDScript extension. Report issues to: https://github.com/grndctrl/zed-gdscript/issues
- Tree Sitter: PrestonKnopp/tree-sitter-gdscript and PrestonKnopp/tree-sitter-godot-resource
- Language Server: gdscript-language-server
Setup
- Download and install Godot for MacOS.
- Unzip the Godot.app and drag it into your /Applications folder.
- Open Godot.app and open your project (an example project is fine)
- In Godot, Editor Menu -> Editor Settings; scroll down the left sidebar to
Text Editor -> External
- Use External Editor: "✅ On"
- Exec path:
/Applications/Zed.app/Contents/MacOS/zed
- Exec flags:
{project} {file}:{line}:{col}
- Close settings to save.
- In Godot double click on a *.gd script and Zed will launch
Usage
When Godot is running, the GDScript extension will connect to the language server provided by the Godot runtime and will provide jump to definition
, hover states when you hold cmd and other language server features.
Note: If Zed is already running with an existing workspace, spawning from Godot will fail. Quit Zed and it should work again.