Skip to content

Commit 7aef143

Browse files
lucyperorwols
authored andcommitted
Add Godot (GDScript) LSP instructions
1 parent 135d81e commit 7aef143

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/src/language_servers.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,24 @@ Follow installation instructions on [LSP-gopls](https://github.com/sublimelsp/LS
166166

167167
!!! info "Visit [gopls repo](https://github.com/golang/tools/tree/master/gopls) for more info."
168168
Enable multi-module workspace support by setting the `experimentalWorkspaceModule` to `true`. Most features will work across modules, but some, such as `goimports`, will not work as expected. Please note that this setting is still very experimental.
169+
170+
## Godot (GDScript)
169171

172+
1. Launch the Godot Editor on the project you are working on and leave it running.
173+
2. Open `Preferences > Package Settings > LSP > Settings` and add the `"godot-lsp"` client configuration to the `"clients"`:
174+
175+
```json
176+
{
177+
"clients": {
178+
"godot-lsp": {
179+
"enabled": true,
180+
"command": ["/PATH/TO/godot-editor.exe"], // Update the PATH
181+
"tcp_port": 6008,
182+
"selector": "source.gdscript",
183+
}
184+
}
185+
}
186+
```
170187

171188
## GraphQL
172189

0 commit comments

Comments
 (0)