aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/lsp.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/plugin/lsp.vim')
-rw-r--r--.vim/after/plugin/lsp.vim10
1 files changed, 9 insertions, 1 deletions
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