This extension is now useless since godotengine/godot#34523 has been closed in godot version 3.2.2
.
coc.nvim extension for godot language server protocol. Original work by https://github.com/godotengine/godot-vscode-plugin ported to coc.nvim
This extension will most likely become useless once godot 3.2.2 is released, as the language server will switch from websockets to TCP (cf: godotengine/godot#35864) we will be able to define a custom language server like this godotengine/godot#34523 (comment)
I recommend https://github.com/calviken/vim-gdscript3 for syntax highlighting
and added filetype to .gd
files.
:CocInstall coc-godot
No commands are implemented yet, however this extension provides:
- code completion
- code validation
- go to definition
- documentation on hover
You must be editing the same project that godot currently opens in order for these features to work.
In order to access your config file, launch :CocConfig
.
The following configuration variables are exposed:
- godot.enable: default true // states wether this extension should be enabled
- godot.lsp_server_port: default 6008