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