From 5740523531630a0f87cf3abb4aa799a6a19d49e2 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 14 Apr 2022 00:49:19 +0800 Subject: Update godot vim config --- .vim/after/plugin/godot.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.vim/after/plugin/godot.vim') diff --git a/.vim/after/plugin/godot.vim b/.vim/after/plugin/godot.vim index 655710e..17e9e83 100644 --- a/.vim/after/plugin/godot.vim +++ b/.vim/after/plugin/godot.vim @@ -32,6 +32,16 @@ let g:ycm_language_server += [ \ } \ ] +" vim-lsp +if get(g:, 'lsp_loaded', 0) == 1 + au User lsp_setup + \ call lsp#register_server({ + \ 'name': 'godot', + \ 'tcp': {server_info->'localhost:6008'}, + \ 'allowlist': ['gdscript', 'gdscript3'] + \ }) +endif + " ALE config call ale#linter#Define('gdscript', { -- cgit v1.2.3