vimrc: add augroup for pyls
This commit is contained in:
parent
a85ccd7318
commit
a2c0d7247c
@ -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
|
||||||
|
autocmd!
|
||||||
|
autocmd User lsp_setup call lsp#register_server({
|
||||||
\ 'name': 'pyls',
|
\ 'name': 'pyls',
|
||||||
\ 'cmd': {server_info->['pyls']},
|
\ 'cmd': {server_info->['pyls']},
|
||||||
\ 'allowlist': ['python'],
|
\ '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/
|
||||||
|
Loading…
Reference in New Issue
Block a user