aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-07-07 22:52:52 +0800
committerGuangxiong Lin <[email protected]>2022-07-07 22:52:52 +0800
commit42eded845d9ec12d214ac7c89f41114ca8a589cb (patch)
treed2ae2ab59791f418e9719027619bc46cd89de3f2
parentcfb9fd37f61f421a6027fbc8bd2fcd5cf68b4cfd (diff)
downloaddotfiles-42eded845d9ec12d214ac7c89f41114ca8a589cb.tar.gz
dotfiles-42eded845d9ec12d214ac7c89f41114ca8a589cb.tar.bz2
dotfiles-42eded845d9ec12d214ac7c89f41114ca8a589cb.zip
Update godot config
-rw-r--r--.vim/after/plugin/godot.vim10
-rw-r--r--.vim/after/plugin/lsp.vim10
2 files changed, 9 insertions, 11 deletions
diff --git a/.vim/after/plugin/godot.vim b/.vim/after/plugin/godot.vim
index 17e9e83..655710e 100644
--- a/.vim/after/plugin/godot.vim
+++ b/.vim/after/plugin/godot.vim
@@ -32,16 +32,6 @@ 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', {
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