diff options
author | Julian T <julian@jtle.dk> | 2020-11-21 17:56:19 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-11-21 17:56:19 +0100 |
commit | 4af935c9576e237b6e8f87e6a28999d8d94d012e (patch) | |
tree | bff960afbb902703bb86d1c74ea188eab69238d2 /vim-extra | |
parent | c848308227c9bcd2c6de188c4431944fc5cfccd3 (diff) |
Fix pyls in vim somehow
Diffstat (limited to 'vim-extra')
-rw-r--r-- | vim-extra/.vim/extra.vim | 14 |
1 files changed, 7 insertions, 7 deletions
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', |