From 4af935c9576e237b6e8f87e6a28999d8d94d012e Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 21 Nov 2020 17:56:19 +0100 Subject: Fix pyls in vim somehow --- vim-extra/.vim/extra.vim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'vim-extra/.vim/extra.vim') diff --git a/vim-extra/.vim/extra.vim b/vim-extra/.vim/extra.vim index c290230..809527f 100644 --- a/vim-extra/.vim/extra.vim +++ b/vim-extra/.vim/extra.vim @@ -72,13 +72,6 @@ autocmd CompleteDone * pclose " Setup lsp servers - if executable('pyls') - au User lsp_setup call lsp#register_server({ - \ 'name': 'python', - \ 'cmd': {server_info->['pyls']}, - \ 'whitelist': ['python', 'py'], - \ }) - endif if executable('clangd') au User lsp_setup call lsp#register_server({ \ 'name': 'clangd', @@ -86,6 +79,13 @@ \ 'whitelist': ['c', 'cpp'], \ }) endif + if executable('pyls') + au User lsp_setup call lsp#register_server({ + \ 'name': 'pyls', + \ 'cmd': {server_info->['pyls']}, + \ 'whitelist': ['py', 'python'], + \ }) + endif if executable('gopls') au User lsp_setup call lsp#register_server({ \ 'name': 'golang', -- cgit v1.2.3