-
Notifications
You must be signed in to change notification settings - Fork 305
Servers Godot
David Briscoe edited this page Jun 8, 2023
·
2 revisions
For most up to date configuration, see godot.vim in vim-lsp-settings
Godot uses a TCP language server that's built into the editor. vim-lsp requires netcat (nc on unix-like) to communicate with TCP servers. vim-lsp now supports tcp, so this config is out of date.
au User lsp_setup
\ call lsp#register_server({
\ 'name': 'godot',
\ 'cmd': ["nc", "localhost", "6008"],
\ 'root_uri':{server_info->lsp#utils#path_to_uri(
\ lsp#utils#find_nearest_parent_file_directory(
\ lsp#utils#get_buffer_path(),
\ ['godot.project', '.git/']
\ ))},
\ 'allowlist': ['gdscript3', 'gdscript']
\ })