vimrc: add augroup for pyls

This commit is contained in:
surtur 2022-10-06 15:41:40 +02:00
parent a85ccd7318
commit a2c0d7247c
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -734,11 +734,14 @@ if executable('zls')
endif
if executable('pyls')
" pip install python-language-server
au User lsp_setup call lsp#register_server({
augroup lsp_py
autocmd!
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'pyls',
\ 'cmd': {server_info->['pyls']},
\ 'allowlist': ['python'],
\ })
augroup END
endif
if executable('omnisharp')
" https://www.rockyourcode.com/use-vim-for-c-sharp-development-on-linux/