This extension adds support for GDScript, the scripting language used in the Godot game engine, to the Zed editor.
- Zed Editor
- Godot Engine (version 3.x or 4.x)
nc
(netcat) orncat
available in your system PATH
- Install this extension in Zed (instructions specific to Zed's extension installation process)
- Ensure Godot is installed on your system
- Set up the Godot language server (see below)
The Godot Language Server should be running separately. Here are the steps to set it up:
- Open your Godot project
- Go to Editor > Editor Settings > Text Editor > External
- Enable "Use External Editor"
- Set "Exec Path" to the path of your Zed executable
- Set "Exec Flags" to
{project} {file}:{line}:{col}
If you have installed Godot and Zed via Flatpak on Linux, use the following parameters:
- Set "Exec Path" to
flatpak-spawn
- Set "Exec Flags" to
--host flatpak run dev.zed.Zed {project} {file}:{line}:{col}
Then, to start the language server:
- Go to Editor > Editor Settings > Network > Language Server
- Set "Remote Host" to
127.0.0.1
- Set "Remote Port" to
6005
- Restart Godot
Godot's language server is part of the Godot editor, and you need to open your project in Godot to use it.
By default, the extension matches the default settings of the Godot editor to connect to its language server:
- Remote Host: 127.0.0.1
- Remote Port: 6005
You can change these settings by adding the following JSON configuration to your settings.json
file:
{
"lsp": {
"gdscript": {
"binary": {
"arguments": ["127.0.0.1", "6005"]
}
}
}
}