mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2026-05-30 11:18:40 +02:00
cd473fc492
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.
15 lines
795 B
VimL
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
|