Files
David Briscoe cd473fc492 Change godot port to 6005
Godot changed the LSP port for Godot 4:
https://github.com/godotengine/godot/blob/master/modules/gdscript/language_server/gdscript_language_server.h#L47-L48

The change was in this commit:

https://github.com/godotengine/godot/commit/de7873c2d87c3ee8af8c27e35f49767fcc384e75

Godot 3 users can change to use this port in editor -> editor settings -> network -> language server -> remote port. Or they can use `let g:lsp_settings.godot = { 'tcp': '127.0.0.1:6008'}` to use the old port instead.
2023-06-22 14:29:20 +09:00

15 lines
795 B
VimL

augroup vim_lsp_settings_godot
au!
LspRegisterServer {
\ 'name': 'godot',
\ 'tcp': {server_info->lsp_settings#get('godot', 'tcp', '127.0.0.1:6005')},
\ 'root_uri':{server_info->lsp_settings#get('godot', 'root_uri', lsp_settings#root_uri('godot'))},
\ 'initialization_options': lsp_settings#get('godot', 'initialization_options', v:null),
\ 'allowlist': lsp_settings#get('godot', 'allowlist', ['gdscript3', 'gdscript']),
\ 'blocklist': lsp_settings#get('godot', 'blocklist', []),
\ 'config': lsp_settings#get('godot', 'config', lsp_settings#server_config('godot')),
\ 'workspace_config': lsp_settings#get('godot', 'workspace_config', {}),
\ 'semantic_highlight': lsp_settings#get('godot', 'semantic_highlight', {}),
\ }
augroup END