coc-gdscript
Norpyx (Godot)GDScript LSP integration with coc.nvim
Published Package Summary
coc-gdscript
GDScript LSP integration for coc.nvim
This extension provides out-of-the-box integration between the Godot 4 editor’s built-in Language Server and Vim/Neovim via coc.nvim. Enjoy IDE‑like features for GDScript and Godot shader files directly in your editor.
📦 Install
:CocInstall coc-gdscript
🚀 Features
- Automatic LSP Connection: Connects to Godot 4’s LSP server over TCP
(
127.0.0.1:6005) whenever you open a GDScript (.gd) or Godot shader (.gdshader) file, or when a Godot project (viaproject.godotor.godot/) is detected in your workspace. - Code Completion: Context‑aware autocompletion for GDScript methods, properties, and constants.
- Diagnostics: Real‑time syntax and semantic error reporting as you type.
- Hover: View documentation and type information on hover.
- Go‑to Definition: Jump to symbol definitions within your project.
- Signature Help: Parameter hints while writing function calls.
- Automatic Reconnection: If the Godot editor (and its LSP server) restarts, the extension will automatically attempt to reconnect without restarting Vim/Neovim.
📝 Usage
- Open your Godot 4 project in Vim/Neovim. Make sure the Godot editor is
running with your project loaded—this starts the LSP server on port
6005. - Open any
.gdor.gdshaderfile. Coc.nvim will detect the filetype and/or the presence of a Godot project and automatically connect to the LSP. - Enjoy IDE‑like features: code completion, diagnostics, hover, go‑to definition, and more.
Note: This extension only implements LSP features. For syntax highlighting, use a dedicated GDScript/shader Vim plugin such as vim-gdscript3.
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to:
- Fork the repository
- Create a branch (
git checkout -b feature/your-feature) - Commit your changes (
git commit -m 'Add some feature') - Push to the branch (
git push origin feature/your-feature) - Open a pull request
Please ensure code is formatted and tested before submitting.
📜 License
This project is licensed under the MIT License. See the LICENSE file for details.
This extension is built with create-coc-extension
- GDScript LSP integration with coc.nvim
- onLanguage:gdscript
- onLanguage:gdshader
- workspaceContains:project.godot
- workspaceContains:.godot
Want to build, test, or contribute to coc.nvim extensions? Explore our official SDK and testing toolkits.
Open Developer GuideVersion History
This published npm package does not include a history.md or changelog.md file. Browse its npm versions or repository releases for available release information.
Contributed Commands
All contributes.commands entries from the published package manifest for coc-gdscript@1.0.2.
This package does not declare any contributed commands.
Configuration Schema
All contributes.configuration entries from the published package manifest, including each raw property schema for coc-settings.json.
Raw JSON Schema
{
"type": "string",
"default": "127.0.0.1",
"description": "Host address of the Godot LSP server"
}Raw JSON Schema
{
"type": "number",
"default": 6005,
"description": "TCP port of the Godot LSP server (default 6005)"
}Raw JSON Schema
{
"type": "boolean",
"default": true,
"description": "Enable the Godot LSP extension"
}