+4








eb3c4b0e46
Co-authored-by: Raunak Raj <nkray21111983@gmail.com> Co-authored-by: Thorsten Ball <mrnugget@gmail.com> Co-authored-by: Bennet <bennet@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com> Co-authored-by: Joseph T Lyons <JosephTLyons@gmail.com> Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Jason <jason@zed.dev> Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Nathan Sobo <nathan@zed.dev> Co-authored-by: Jason Mancuso <7891333+jvmncs@users.noreply.github.com> Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
30 lines
1.5 KiB
Markdown
30 lines
1.5 KiB
Markdown
# GDScript
|
|
|
|
Godot [GDScript](https://gdscript.com/) language support in Zed is provided by the community-maintained [GDScript extension](https://github.com/grndctrl/zed-gdscript).
|
|
Report issues to: [https://github.com/grndctrl/zed-gdscript/issues](https://github.com/grndctrl/zed-gdscript/issues)
|
|
|
|
- Tree Sitter: [PrestonKnopp/tree-sitter-gdscript](https://github.com/PrestonKnopp/tree-sitter-gdscript) and [PrestonKnopp/tree-sitter-godot-resource](https://github.com/PrestonKnopp/tree-sitter-godot-resource)
|
|
- Language Server: [gdscript-language-server](https://github.com/godotengine/godot)
|
|
|
|
## Setup
|
|
|
|
1. Download and install [Godot for MacOS](https://godotengine.org/download/macos/).
|
|
2. Unzip the Godot.app and drag it into your /Applications folder.
|
|
3. Open Godot.app and open your project (an example project is fine)
|
|
4. In Godot, Editor Menu -> Editor Settings; scroll down the left sidebar to `Text Editor -> External`
|
|
1. Use External Editor: "✅ On"
|
|
2. Exec path: `/Applications/Zed.app/Contents/MacOS/zed`
|
|
3. Exec flags: `{project} {file}`
|
|
4. Close settings to save.
|
|
5. In Godot double click on a \*.gd script and Zed will launch
|
|
|
|
<!--
|
|
TBD: GDScript Linux setup
|
|
-->
|
|
|
|
## 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.
|