Skip to content
David Briscoe edited this page Nov 12, 2020 · 2 revisions

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.

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']
            \ })