From 42eded845d9ec12d214ac7c89f41114ca8a589cb Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 7 Jul 2022 22:52:52 +0800 Subject: Update godot config --- .vim/after/plugin/lsp.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.vim/after/plugin/lsp.vim') diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index 3e81ed0..ae5f203 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -1,7 +1,6 @@ if has('nvim') finish endif - let g:lsp_diagnostics_enabled = 0 let g:lsp_document_code_action_signs_enabled = 0 @@ -33,6 +32,15 @@ if executable('clangd') \ }) endif +if executable('godot') + au User lsp_setup + \ call lsp#register_server({ + \ 'name': 'godot', + \ 'tcp': {server_info->'localhost:6008'}, + \ 'allowlist': ['gdscript', 'gdscript3'] + \ }) +endif + function! s:on_lsp_buffer_enabled() abort setlocal omnifunc=lsp#complete setlocal nocscopetag -- cgit v1.2.3