From 7a5c7c7500129d95eac8fc3c6003b153a2e660fa Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 5 Nov 2020 01:57:38 +0800 Subject: [PATCH] formatting --- core/plugins.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/plugins.vim b/core/plugins.vim index f7272d9..3502ff9 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -363,8 +363,10 @@ let g:lsp_diagnostics_float_delay = 100 " set up pyls for vim-lsp if executable('pyls') - " pip install python-language-server - au User lsp_setup call lsp#register_server({ + " pip install python-language-server + augroup pyls_setup + autocmd! + autocmd User lsp_setup call lsp#register_server({ \ 'name': 'pyls', \ 'cmd': {server_info->['pyls']}, \ 'allowlist': ['python'], @@ -375,8 +377,9 @@ if executable('pyls') \ 'pyflakes': {'enabled': v:false}, \ 'pycodestyle': {'enabled': v:false}, \ } - \ } + \ } \ }}) + augroup END endif if executable('vim-language-server')